aws

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package aws provides steps implementations related to AWS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ASClient         autoscalingiface.AutoScalingAPI
	AsgName          string
	LaunchConfigName string
}

func (*Client) AnASGNamed

func (c *Client) AnASGNamed(name string) error

AnASGNamed updates the current ASG to be used by the other ASG related steps.

func (*Client) GetAWSCredsAndClients

func (c *Client) GetAWSCredsAndClients() error

GetAWSCredsAndClients checks if there is a valid credential available and uses it to update the AS Client.

func (*Client) ScaleCurrentASG

func (c *Client) ScaleCurrentASG(desiredMin, desiredMax int64) error

ScaleCurrentASG scales the max and min size of the current ASG.

func (*Client) UpdateFieldOfCurrentASG

func (c *Client) UpdateFieldOfCurrentASG(field, value string) error

UpdateFieldOfCurrentASG updates the current ASG. Fields/parameters supported: LaunchConfigurationName, MinSize, DesiredCapacity and MaxSize.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL