cloud

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCannotIncreaseDesiredCountAboveMax = errors.New("cannot increase ASG desired size above max ASG size")
)

Functions

func DescribeAutoScalingGroupsByNames

func DescribeAutoScalingGroupsByNames(svc autoscalingiface.AutoScalingAPI, names []string) ([]*autoscaling.Group, error)

func DescribeEnabledAutoScalingGroupsByTags added in v1.3.0

func DescribeEnabledAutoScalingGroupsByTags(svc autoscalingiface.AutoScalingAPI, autodiscoveryTags string) ([]*autoscaling.Group, error)

DescribeEnabledAutoScalingGroupsByTags Gets AutoScalingGroups that match the given tags

func DescribeLaunchTemplateByID

func DescribeLaunchTemplateByID(svc ec2iface.EC2API, id string) (*ec2.LaunchTemplate, error)

func DescribeLaunchTemplateByName

func DescribeLaunchTemplateByName(svc ec2iface.EC2API, name string) (*ec2.LaunchTemplate, error)

func GetServices

func GetServices(awsRegion string) (ec2iface.EC2API, autoscalingiface.AutoScalingAPI, error)

GetServices returns an instance of a EC2 client with a session as well as an instance of an Autoscaling client with a session

func SetAutoScalingGroupDesiredCount

func SetAutoScalingGroupDesiredCount(svc autoscalingiface.AutoScalingAPI, asg *autoscaling.Group, count int64) error

func TerminateEc2Instance

func TerminateEc2Instance(svc autoscalingiface.AutoScalingAPI, instance *autoscaling.Instance, shouldDecrementDesiredCapacity bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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