ec2

package
v0.0.0-...-23fbc31 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Regions []string
)

Functions

func ListAndSaveRegions

func ListAndSaveRegions(cfg aws.Config)

Types

type EC2Client

type EC2Client struct {
	aws.Config
	// contains filtered or unexported fields
}

type Instance

type Instance struct {
	types.Instance
	UserData          string `json:"UserData,omitempty"`
	NetworkInterfaces []NetworkInterface
	InstanceState     types.InstanceState
}

Override SDK EC2 instance type to insert SecurityGroup information

func ListInstances

func ListInstances(cfg aws.Config) (ec2s []*Instance, err *awshttp.ResponseError)

type NetworkInterface

type NetworkInterface struct {
	types.InstanceNetworkInterface
	SecurityGroup []types.SecurityGroup
}

type VPC

type VPC struct {
	VPCs     []types.Vpc
	Peerings []types.VpcPeeringConnection
}

func ListVpcs

func ListVpcs(cfg aws.Config) (vpcs *VPC)

Jump to

Keyboard shortcuts

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