ec2utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectPlatformForAutoscaleGroup

func DetectPlatformForAutoscaleGroup(ctx *context.Context, asg string) (string, error)

func DetectPlatformForInstances

func DetectPlatformForInstances(ctx *context.Context, instances []string) (string, error)

Detect Platform Type of a group of EC2 instances

func DetectPlatformForTag

func DetectPlatformForTag(ctx *context.Context, key, value string) (string, error)

Return a Platform Type given a tag key name and value

Types

type Instance

type Instance struct {
	EC2Information ec2.Instance
	SSMInformation ssm.InstanceInformation
}

Container struct for an instance Holds all the information returned by both SSM and EC2 APIs

func DescribeInstances

func DescribeInstances(session *session.Session, ssmFilters string) ([]Instance, error)

Given SSM Filters return both the SSM description and the EC2 description

Jump to

Keyboard shortcuts

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