aznat

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShorthandRegions = []string{"use1", "use2", "usw1", "usw2", "usgw2", "cac1", "ew1", "ew2", "ec1", "apse1", "apse2", "aps1", "apne1", "apne2", "sae1", "cn1"}
	Regions          = []string{
		"us-east-1",
		"us-east-2",
		"us-west-1",
		"us-west-2",
		"us-gov-west-1",
		"ca-central-1",
		"eu-west-1",
		"eu-west-2",
		"eu-central-1",
		"ap-southeast-1",
		"ap-southeast-2",
		"ap-south-1",
		"ap-northeast-1",
		"ap-northeast-2",
		"sa-east-1",
		"cn-north-1",
	}
)

Functions

func Run

func Run(args *Args) error

Types

type Args

type Args struct {
	TargetAvailabilityZoneIDs []string
	TargetVPCID               string
	Region                    string
	Restore                   bool
	DryRun                    bool
}

type CordonContext

type CordonContext struct {
	EC2                ec2iface.EC2API
	Subnets            []*ec2.Subnet
	RouteTables        []*ec2.RouteTable
	Gateways           []*ec2.NatGateway
	SubnetAssociations []SubnetAssociation
	ReplacedRoutes     []Route
}

type GatewayStatuses

type GatewayStatuses struct {
	Active   []string
	Cordoned []string
}

type Route

type Route struct {
	TableID         string
	DestinationCIDR string
	GatewayID       string
	ZoneID          string
	NewGateway      string
}

type SubnetAssociation

type SubnetAssociation struct {
	SubnetID   string
	GatewayIDs []string
	ZoneID     string
}

Jump to

Keyboard shortcuts

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