ec2

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeInstanceByID added in v0.0.68

func DescribeInstanceByID(instanceID string) (*ec2.DescribeInstancesOutput, error)

func DescribeInstanceByName added in v0.0.68

func DescribeInstanceByName(instanceName string) (*ec2.DescribeInstancesOutput, error)

func ListEC2

func ListEC2() ([]ec2types.Instance, error)

Types

type InstanceDetail

type InstanceDetail struct {
	InstanceName string
	InstanceID   string
}

func GetEC2InstanceDetail added in v0.0.68

func GetEC2InstanceDetail() ([]InstanceDetail, error)

GetEC2InstanceDetail return a struct that contains {InstanceName, InstanceID} for every EC2 instances

type Network

type Network struct {
	PrivateIPv4 string
	PublicIPv4  string
	PrivateDns  string
	PublicDns   string
	KeyName     string
}

func DescribeNetwork

func DescribeNetwork(instance string) (*Network, error)

Jump to

Keyboard shortcuts

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