amazon

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 30 Imported by: 4

Documentation

Index

Constants

View Source
const DeleteClusterMachinesStepName = "aws_delete_cluster_machines"
View Source
const DeleteInternetGatewayStepName = "aws_delete_internet_gateway"
View Source
const DeleteKeyPairStepName = "aws_delete_key_pair"
View Source
const DeleteLoadBalancerStepName = "delete_load_balancer"
View Source
const DeleteNodeStepName = "aws_delete_node"
View Source
const DeleteRouteTableStepName = "aws_delete_route_table"
View Source
const DeleteSecurityGroupsStepName = "aws_delete_security_groups"
View Source
const DeleteSubnetsStepName = "aws_delete_subnets"
View Source
const DeleteVPCStepName = "aws_delete_vpc"
View Source
const DisassociateRouteTableStepName = "aws_disassociate_route_table"
View Source
const (
	ImporRouteTablesStepName = "import_route_tables_aws"
)
View Source
const (
	ImportClusterMachinesStepName = "import_cluster_machines_aws"
)
View Source
const (
	ImportInternetGatewayStepName = "import_internet_gateway_aws"
)
View Source
const ImportKeyPairStepName = "aws_import_keypair_step"
View Source
const (
	ImportSubnetsStepName = "import_subnets_aws"
)
View Source
const RegisterInstanceStepName = "register_instance"
View Source
const StepAssociateRouteTable = "associate_route_table"
View Source
const StepCreateInternetGateway = "create_internet_gateway"
View Source
const StepCreateLoadBalancer = "create_load_balancer"
View Source
const StepCreateRouteTable = "create_route_table"
View Source
const StepCreateSecurityGroups = "create_security_groups_step"
View Source
const StepCreateSubnets = "create_subnet_steps"
View Source
const StepCreateTags = "create_tags"
View Source
const StepCreateVPC = "aws_create_vpc"
View Source
const StepFindAMI = "find_amazon_machine_image"
View Source
const (
	StepNameCreateEC2Instance = "aws_create_instance"
)
View Source
const (
	StepNameCreateInstanceProfiles = "aws_create_instance_profiles"
)

Variables

View Source
var (
	ErrReadVPC        = errors.New("aws: can't read vpc info")
	ErrCreateVPC      = errors.New("aws: create vpc")
	ErrAuthorization  = errors.New("aws: authorization")
	ErrCreateSubnet   = errors.New("aws: create subnet")
	ErrCreateInstance = errors.New("aws: create instance")
	ErrImportKeyPair  = errors.New("aws: import keypair")
	ErrNoPublicIP     = errors.New("aws: no public IP assigned")
	ErrDeleteCluster  = errors.New("aws: delete cluster")
	ErrDeleteNode     = errors.New("aws: delete node")
)
View Source
var (
	ErrEmptyResponse = errors.New("empty response")
)

Functions

func FindExternalIP

func FindExternalIP() (string, error)

func FindOutboundIP

func FindOutboundIP(ctx context.Context, findExternalIP func() (string, error)) (string, error)

func GetEC2

func GetEC2(cfg steps.AWSConfig) (ec2iface.EC2API, error)

func GetELB

func GetELB(cfg steps.AWSConfig) (*elb.ELB, error)

func GetIAM

func GetIAM(cfg steps.AWSConfig) (iamiface.IAMAPI, error)

func InitAssociateRouteTable

func InitAssociateRouteTable(ec2fn GetEC2Fn)

InitAssociateRouteTable adds the step to the registry

func InitCreateInstanceProfiles

func InitCreateInstanceProfiles(iamfn GetIAMFn)

func InitCreateInternetGateway

func InitCreateInternetGateway(ec2fn GetEC2Fn)

InitCreateMachine adds the step to the registry

func InitCreateLoadBalancer

func InitCreateLoadBalancer(getELBFn GetELBFn)

InitCreateMachine adds the step to the registry

func InitCreateMachine

func InitCreateMachine(ec2fn GetEC2Fn)

InitCreateMachine adds the step to the registry

func InitCreateRouteTable

func InitCreateRouteTable(ec2fn GetEC2Fn)

InitCreateRouteTable adds the step to the registry

func InitCreateSecurityGroups

func InitCreateSecurityGroups(fn GetEC2Fn)

func InitCreateSubnet

func InitCreateSubnet(fn GetEC2Fn, accSvc *account.Service)

func InitCreateTagsStep

func InitCreateTagsStep(ec2fn GetEC2Fn)

InitCreateRouteTable adds the step to the registry

func InitCreateVPC

func InitCreateVPC(fn GetEC2Fn)

func InitDeleteClusterMachines

func InitDeleteClusterMachines(fn GetEC2Fn)

func InitDeleteInternetGateWay

func InitDeleteInternetGateWay(fn GetEC2Fn)

func InitDeleteKeyPair

func InitDeleteKeyPair(fn GetEC2Fn)

func InitDeleteLoadBalancer

func InitDeleteLoadBalancer(getELBFn GetELBFn)

InitCreateMachine adds the step to the registry

func InitDeleteNode

func InitDeleteNode(fn GetEC2Fn)

func InitDeleteRouteTable

func InitDeleteRouteTable(fn GetEC2Fn)

func InitDeleteSecurityGroup

func InitDeleteSecurityGroup(fn GetEC2Fn)

func InitDeleteSubnets

func InitDeleteSubnets(fn GetEC2Fn)

func InitDeleteVPC

func InitDeleteVPC(fn GetEC2Fn)

func InitDisassociateRouteTable

func InitDisassociateRouteTable(fn GetEC2Fn)

func InitFindAMI

func InitFindAMI(fn GetEC2Fn)

func InitImportClusterStep

func InitImportClusterStep(fn GetEC2Fn)

func InitImportInternetGatewayStep

func InitImportInternetGatewayStep(fn GetEC2Fn)

func InitImportKeyPair

func InitImportKeyPair(fn GetEC2Fn)

InitImportKeyPair add the step to the registry

func InitImportRouteTablesStep

func InitImportRouteTablesStep(fn GetEC2Fn)

func InitImportSubnetDescriber

func InitImportSubnetDescriber(fn GetEC2Fn)

func InitRegisterInstance

func InitRegisterInstance(getELBFn GetELBFn)

InitCreateMachine adds the step to the registry

Types

type AssociateRouteTableStep

type AssociateRouteTableStep struct {
	// contains filtered or unexported fields
}

func NewAssociateRouteTableStep

func NewAssociateRouteTableStep(ec2fn GetEC2Fn) *AssociateRouteTableStep

func (*AssociateRouteTableStep) Depends

func (*AssociateRouteTableStep) Depends() []string

func (*AssociateRouteTableStep) Description

func (*AssociateRouteTableStep) Description() string

func (*AssociateRouteTableStep) Name

func (*AssociateRouteTableStep) Rollback

func (s *AssociateRouteTableStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error

func (*AssociateRouteTableStep) Run

type Associater

type Associater interface {
	AssociateRouteTable(*ec2.AssociateRouteTableInput) (*ec2.AssociateRouteTableOutput, error)
}

type CreateInternetGatewayStep

type CreateInternetGatewayStep struct {
	// contains filtered or unexported fields
}

func NewCreateInternetGatewayStep

func NewCreateInternetGatewayStep(ec2fn GetEC2Fn) *CreateInternetGatewayStep

func (*CreateInternetGatewayStep) Depends

func (*CreateInternetGatewayStep) Depends() []string

func (*CreateInternetGatewayStep) Description

func (*CreateInternetGatewayStep) Description() string

func (*CreateInternetGatewayStep) Name

func (*CreateInternetGatewayStep) Rollback

func (s *CreateInternetGatewayStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error

func (*CreateInternetGatewayStep) Run

type CreateLoadBalancerStep

type CreateLoadBalancerStep struct {
	// contains filtered or unexported fields
}

func NewCreateLoadBalancerStep

func NewCreateLoadBalancerStep(getELBFn GetELBFn) *CreateLoadBalancerStep

func (*CreateLoadBalancerStep) Depends

func (s *CreateLoadBalancerStep) Depends() []string

func (*CreateLoadBalancerStep) Description

func (s *CreateLoadBalancerStep) Description() string

func (*CreateLoadBalancerStep) Name

func (s *CreateLoadBalancerStep) Name() string

func (*CreateLoadBalancerStep) Rollback

func (s *CreateLoadBalancerStep) Rollback(ctx context.Context, out io.Writer, cfg *steps.Config) error

func (*CreateLoadBalancerStep) Run

type CreateRouteTableStep

type CreateRouteTableStep struct {
	GetEC2 GetEC2Fn
	// contains filtered or unexported fields
}

func NewCreateRouteTableStep

func NewCreateRouteTableStep(ec2fn GetEC2Fn) *CreateRouteTableStep

func (*CreateRouteTableStep) Depends

func (*CreateRouteTableStep) Depends() []string

func (*CreateRouteTableStep) Description

func (*CreateRouteTableStep) Description() string

func (*CreateRouteTableStep) Name

func (*CreateRouteTableStep) Name() string

func (*CreateRouteTableStep) Rollback

func (s *CreateRouteTableStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error

func (*CreateRouteTableStep) Run

type CreateSecurityGroupsStep

type CreateSecurityGroupsStep struct {
	// contains filtered or unexported fields
}

func NewCreateSecurityGroupsStep

func NewCreateSecurityGroupsStep(fn GetEC2Fn) *CreateSecurityGroupsStep

func (*CreateSecurityGroupsStep) Depends

func (*CreateSecurityGroupsStep) Depends() []string

func (*CreateSecurityGroupsStep) Description

func (*CreateSecurityGroupsStep) Description() string

func (*CreateSecurityGroupsStep) Name

func (*CreateSecurityGroupsStep) Rollback

func (*CreateSecurityGroupsStep) Run

type CreateSubnetsStep

type CreateSubnetsStep struct {
	// contains filtered or unexported fields
}

func NewCreateSubnetStep

func NewCreateSubnetStep(fn GetEC2Fn, getter accountGetter) *CreateSubnetsStep

func (*CreateSubnetsStep) Depends

func (*CreateSubnetsStep) Depends() []string

func (*CreateSubnetsStep) Description

func (*CreateSubnetsStep) Description() string

func (*CreateSubnetsStep) Name

func (*CreateSubnetsStep) Name() string

func (*CreateSubnetsStep) Rollback

func (*CreateSubnetsStep) Run

func (s *CreateSubnetsStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type CreateTagsStep

type CreateTagsStep struct {
	GetEC2 GetEC2Fn
	// contains filtered or unexported fields
}

func NewCreateTagsStep

func NewCreateTagsStep(ec2fn GetEC2Fn) *CreateTagsStep

func (*CreateTagsStep) Depends

func (*CreateTagsStep) Depends() []string

func (*CreateTagsStep) Description

func (*CreateTagsStep) Description() string

func (*CreateTagsStep) Name

func (*CreateTagsStep) Name() string

func (*CreateTagsStep) Rollback

func (s *CreateTagsStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error

func (*CreateTagsStep) Run

func (s *CreateTagsStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type CreateVPCStep

type CreateVPCStep struct {
	GetEC2 GetEC2Fn
}

CreateVPCStep represents creation of an virtual private cloud in AWS

func NewCreateVPCStep

func NewCreateVPCStep(fn GetEC2Fn) *CreateVPCStep

func (*CreateVPCStep) Depends

func (*CreateVPCStep) Depends() []string

func (*CreateVPCStep) Description

func (*CreateVPCStep) Description() string

func (*CreateVPCStep) Name

func (*CreateVPCStep) Name() string

func (*CreateVPCStep) Rollback

func (*CreateVPCStep) Run

func (c *CreateVPCStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DeleteClusterMachines

type DeleteClusterMachines struct {
	GetEC2 GetEC2Fn
	// contains filtered or unexported fields
}

func NewDeleteClusterInstances

func NewDeleteClusterInstances(fn GetEC2Fn) *DeleteClusterMachines

func (*DeleteClusterMachines) Depends

func (*DeleteClusterMachines) Depends() []string

func (*DeleteClusterMachines) Description

func (*DeleteClusterMachines) Description() string

func (*DeleteClusterMachines) Name

func (*DeleteClusterMachines) Name() string

func (*DeleteClusterMachines) Rollback

func (*DeleteClusterMachines) Run

type DeleteInternetGateway

type DeleteInternetGateway struct {
	// contains filtered or unexported fields
}

func NewDeleteInernetGateway

func NewDeleteInernetGateway(fn GetEC2Fn) *DeleteInternetGateway

func (*DeleteInternetGateway) Depends

func (*DeleteInternetGateway) Depends() []string

func (*DeleteInternetGateway) Description

func (*DeleteInternetGateway) Description() string

func (*DeleteInternetGateway) Name

func (*DeleteInternetGateway) Name() string

func (*DeleteInternetGateway) Rollback

func (*DeleteInternetGateway) Run

type DeleteKeyPair

type DeleteKeyPair struct {
	GetEC2 GetEC2Fn
	// contains filtered or unexported fields
}

func NewDeleteKeyPairStep

func NewDeleteKeyPairStep(fn GetEC2Fn) *DeleteKeyPair

func (*DeleteKeyPair) Depends

func (*DeleteKeyPair) Depends() []string

func (*DeleteKeyPair) Description

func (*DeleteKeyPair) Description() string

func (*DeleteKeyPair) Name

func (*DeleteKeyPair) Name() string

func (*DeleteKeyPair) Rollback

func (*DeleteKeyPair) Run

func (s *DeleteKeyPair) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DeleteLoadBalancerStep

type DeleteLoadBalancerStep struct {
	// contains filtered or unexported fields
}

func NewDeleteLoadBalancerStep

func NewDeleteLoadBalancerStep(getELBFn GetELBFn) *DeleteLoadBalancerStep

func (*DeleteLoadBalancerStep) Depends

func (s *DeleteLoadBalancerStep) Depends() []string

func (*DeleteLoadBalancerStep) Description

func (s *DeleteLoadBalancerStep) Description() string

func (*DeleteLoadBalancerStep) Name

func (s *DeleteLoadBalancerStep) Name() string

func (*DeleteLoadBalancerStep) Rollback

func (s *DeleteLoadBalancerStep) Rollback(ctx context.Context, out io.Writer, cfg *steps.Config) error

func (*DeleteLoadBalancerStep) Run

type DeleteNodeStep

type DeleteNodeStep struct {
	// contains filtered or unexported fields
}

func NewDeleteNode

func NewDeleteNode(fn GetEC2Fn) *DeleteNodeStep

func (*DeleteNodeStep) Depends

func (*DeleteNodeStep) Depends() []string

func (*DeleteNodeStep) Description

func (*DeleteNodeStep) Description() string

func (*DeleteNodeStep) Name

func (*DeleteNodeStep) Name() string

func (*DeleteNodeStep) Rollback

func (*DeleteNodeStep) Run

func (s *DeleteNodeStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DeleteRouteTable

type DeleteRouteTable struct {
	// contains filtered or unexported fields
}

func NewDeleteRouteTableStep

func NewDeleteRouteTableStep(fn GetEC2Fn) *DeleteRouteTable

func (*DeleteRouteTable) Depends

func (*DeleteRouteTable) Depends() []string

func (*DeleteRouteTable) Description

func (*DeleteRouteTable) Description() string

func (*DeleteRouteTable) Name

func (*DeleteRouteTable) Name() string

func (*DeleteRouteTable) Rollback

func (*DeleteRouteTable) Run

func (s *DeleteRouteTable) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DeleteSecurityGroup

type DeleteSecurityGroup struct {
	// contains filtered or unexported fields
}

func NewDeleteSecurityGroupService

func NewDeleteSecurityGroupService(fn GetEC2Fn) *DeleteSecurityGroup

func (*DeleteSecurityGroup) Depends

func (*DeleteSecurityGroup) Depends() []string

func (*DeleteSecurityGroup) Description

func (*DeleteSecurityGroup) Description() string

func (*DeleteSecurityGroup) Name

func (*DeleteSecurityGroup) Name() string

func (*DeleteSecurityGroup) Rollback

func (*DeleteSecurityGroup) Run

type DeleteSubnets

type DeleteSubnets struct {
	GetEC2 GetEC2Fn
	// contains filtered or unexported fields
}

func NewDeleteSubnets

func NewDeleteSubnets(fn GetEC2Fn) *DeleteSubnets

func (*DeleteSubnets) Depends

func (*DeleteSubnets) Depends() []string

func (*DeleteSubnets) Description

func (*DeleteSubnets) Description() string

func (*DeleteSubnets) Name

func (*DeleteSubnets) Name() string

func (*DeleteSubnets) Rollback

func (*DeleteSubnets) Run

func (s *DeleteSubnets) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DeleteVPC

type DeleteVPC struct {
	GetEC2 GetEC2Fn
	// contains filtered or unexported fields
}

func NewDeleteVPC

func NewDeleteVPC(fn GetEC2Fn) *DeleteVPC

func (*DeleteVPC) Depends

func (*DeleteVPC) Depends() []string

func (*DeleteVPC) Description

func (*DeleteVPC) Description() string

func (*DeleteVPC) Name

func (*DeleteVPC) Name() string

func (*DeleteVPC) Rollback

func (*DeleteVPC) Run

func (s *DeleteVPC) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type DisassociateRouteTable

type DisassociateRouteTable struct {
	// contains filtered or unexported fields
}

func NewDisassociateRouteTableStep

func NewDisassociateRouteTableStep(fn GetEC2Fn) *DisassociateRouteTable

func (*DisassociateRouteTable) Depends

func (*DisassociateRouteTable) Depends() []string

func (*DisassociateRouteTable) Description

func (*DisassociateRouteTable) Description() string

func (*DisassociateRouteTable) Name

func (*DisassociateRouteTable) Rollback

func (*DisassociateRouteTable) Run

type DisassociateService

type DisassociateService interface {
	DisassociateRouteTable(*ec2.DisassociateRouteTableInput) (*ec2.DisassociateRouteTableOutput, error)
}

type FindAMIStep

type FindAMIStep struct {
	// contains filtered or unexported fields
}

func NewFindAMIStep

func NewFindAMIStep(fn GetEC2Fn) *FindAMIStep

func (*FindAMIStep) Depends

func (*FindAMIStep) Depends() []string

func (*FindAMIStep) Description

func (*FindAMIStep) Description() string

func (*FindAMIStep) FindAMI

func (s *FindAMIStep) FindAMI(ctx context.Context, w io.Writer, finder ImageFinder, config *steps.Config) error

func (*FindAMIStep) Name

func (*FindAMIStep) Name() string

func (*FindAMIStep) Rollback

func (*FindAMIStep) Run

func (s *FindAMIStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

type GatewayDescriber

type GatewayDescriber interface {
	DescribeInternetGateways(*ec2.DescribeInternetGatewaysInput) (*ec2.DescribeInternetGatewaysOutput, error)
}

type GetEC2Fn

type GetEC2Fn func(steps.AWSConfig) (ec2iface.EC2API, error)

type GetELBFn

type GetELBFn func(steps.AWSConfig) (*elb.ELB, error)

NOT(stgleb): *elb.ELB doesn't implement elbiface.ELBAPI for some reasom

type GetIAMFn

type GetIAMFn func(steps.AWSConfig) (iamiface.IAMAPI, error)

type IGWDeleter

type IGWDeleter interface {
	DetachInternetGateway(*ec2.DetachInternetGatewayInput) (*ec2.DetachInternetGatewayOutput, error)
	DeleteInternetGateway(*ec2.DeleteInternetGatewayInput) (*ec2.DeleteInternetGatewayOutput, error)
}

type ImageFinder

type ImageFinder interface {
	DescribeImagesWithContext(aws.Context, *ec2.DescribeImagesInput,
		...request.Option) (*ec2.DescribeImagesOutput, error)
}

type ImportClusterStep

type ImportClusterStep struct {
	// contains filtered or unexported fields
}

func NewImportClusterStep

func NewImportClusterStep(fn GetEC2Fn) *ImportClusterStep

func (ImportClusterStep) Depends

func (s ImportClusterStep) Depends() []string

func (ImportClusterStep) Description

func (s ImportClusterStep) Description() string

func (ImportClusterStep) Name

func (s ImportClusterStep) Name() string

func (ImportClusterStep) Rollback

func (ImportClusterStep) Run

func (s ImportClusterStep) Run(ctx context.Context, out io.Writer, cfg *steps.Config) error

type ImportInternetGatewayStep

type ImportInternetGatewayStep struct {
	// contains filtered or unexported fields
}

func NewImportInternetGatewayStep

func NewImportInternetGatewayStep(fn GetEC2Fn) *ImportInternetGatewayStep

func (ImportInternetGatewayStep) Depends

func (s ImportInternetGatewayStep) Depends() []string

func (ImportInternetGatewayStep) Description

func (s ImportInternetGatewayStep) Description() string

func (ImportInternetGatewayStep) Name

func (ImportInternetGatewayStep) Rollback

func (ImportInternetGatewayStep) Run

type ImportRouteTablesStep

type ImportRouteTablesStep struct {
	// contains filtered or unexported fields
}

func NewImportRouteTablesStep

func NewImportRouteTablesStep(fn GetEC2Fn) *ImportRouteTablesStep

func (ImportRouteTablesStep) Depends

func (s ImportRouteTablesStep) Depends() []string

func (ImportRouteTablesStep) Description

func (s ImportRouteTablesStep) Description() string

func (ImportRouteTablesStep) Name

func (s ImportRouteTablesStep) Name() string

func (ImportRouteTablesStep) Rollback

func (ImportRouteTablesStep) Run

type ImportSubnetsStep

type ImportSubnetsStep struct {
	// contains filtered or unexported fields
}

func NewImportSubnetsStep

func NewImportSubnetsStep(fn GetEC2Fn) *ImportSubnetsStep

func (ImportSubnetsStep) Depends

func (s ImportSubnetsStep) Depends() []string

func (ImportSubnetsStep) Description

func (s ImportSubnetsStep) Description() string

func (ImportSubnetsStep) Name

func (s ImportSubnetsStep) Name() string

func (ImportSubnetsStep) Rollback

func (ImportSubnetsStep) Run

func (s ImportSubnetsStep) Run(ctx context.Context, out io.Writer, cfg *steps.Config) error

type InstanceDescriber

type InstanceDescriber interface {
	DescribeInstancesWithContext(aws.Context, *ec2.DescribeInstancesInput, ...request.Option) (*ec2.DescribeInstancesOutput, error)
	DescribeSecurityGroups(*ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)
	CreateTags(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error)
}

type InternetGatewayCreater

type InternetGatewayCreater interface {
	CreateInternetGateway(*ec2.CreateInternetGatewayInput) (*ec2.CreateInternetGatewayOutput, error)
	CreateTags(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error)
	AttachInternetGateway(*ec2.AttachInternetGatewayInput) (*ec2.AttachInternetGatewayOutput, error)
}

type KeyPairStep

type KeyPairStep struct {
	GetEC2 GetEC2Fn
	// contains filtered or unexported fields
}

KeyPairStep represents creation of keypair in aws since there is hard cap on keypairs per account supergiant will create one per cluster

func NewImportKeyPairStep

func NewImportKeyPairStep(fn GetEC2Fn) *KeyPairStep

func (*KeyPairStep) Depends

func (*KeyPairStep) Depends() []string

func (*KeyPairStep) Description

func (*KeyPairStep) Description() string

func (*KeyPairStep) Name

func (*KeyPairStep) Name() string

func (*KeyPairStep) Rollback

func (s *KeyPairStep) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error

func (*KeyPairStep) Run

func (s *KeyPairStep) Run(ctx context.Context, w io.Writer, cfg *steps.Config) error

Verifies that a key exists,

type KeyService

type KeyService interface {
	DeleteKeyPair(*ec2.DeleteKeyPairInput) (*ec2.DeleteKeyPairOutput, error)
}

type LoadBalancerCreater

type LoadBalancerCreater interface {
	CreateLoadBalancerWithContext(aws.Context, *elb.CreateLoadBalancerInput, ...request.Option) (*elb.CreateLoadBalancerOutput, error)
	ConfigureHealthCheck(*elb.ConfigureHealthCheckInput) (*elb.ConfigureHealthCheckOutput, error)
}

type LoadBalancerDeleter

type LoadBalancerDeleter interface {
	DeleteLoadBalancerWithContext(aws.Context, *elb.DeleteLoadBalancerInput, ...request.Option) (*elb.DeleteLoadBalancerOutput, error)
}

type LoadBalancerRegister

type LoadBalancerRegister interface {
	RegisterInstancesWithLoadBalancerWithContext(aws.Context, *elb.RegisterInstancesWithLoadBalancerInput, ...request.Option) (*elb.RegisterInstancesWithLoadBalancerOutput, error)
}

type RegisterInstanceStep

type RegisterInstanceStep struct {
	// contains filtered or unexported fields
}

func NewRegisterInstanceStep

func NewRegisterInstanceStep(getELBFn GetELBFn) *RegisterInstanceStep

func (*RegisterInstanceStep) Depends

func (s *RegisterInstanceStep) Depends() []string

func (*RegisterInstanceStep) Description

func (s *RegisterInstanceStep) Description() string

func (*RegisterInstanceStep) Name

func (s *RegisterInstanceStep) Name() string

func (*RegisterInstanceStep) Rollback

func (s *RegisterInstanceStep) Rollback(ctx context.Context, out io.Writer, cfg *steps.Config) error

func (*RegisterInstanceStep) Run

func (s *RegisterInstanceStep) Run(ctx context.Context, out io.Writer, cfg *steps.Config) error

type RouteTableDescriber

type RouteTableDescriber interface {
	DescribeRouteTablesWithContext(aws.Context, *ec2.DescribeRouteTablesInput, ...request.Option) (*ec2.DescribeRouteTablesOutput, error)
}

type Service

type Service interface {
	CreateRouteTable(*ec2.CreateRouteTableInput) (*ec2.CreateRouteTableOutput, error)
	CreateTags(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error)
	CreateRoute(*ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error)
}

type StepCreateInstance

type StepCreateInstance struct {
	// contains filtered or unexported fields
}

func NewCreateInstance

func NewCreateInstance(ec2fn GetEC2Fn) *StepCreateInstance

func (*StepCreateInstance) Depends

func (*StepCreateInstance) Depends() []string

func (*StepCreateInstance) Description

func (*StepCreateInstance) Description() string

func (*StepCreateInstance) Name

func (*StepCreateInstance) Name() string

func (*StepCreateInstance) Rollback

func (s *StepCreateInstance) Rollback(ctx context.Context, w io.Writer, cfg *steps.Config) error

func (*StepCreateInstance) Run

type StepCreateInstanceProfiles

type StepCreateInstanceProfiles struct {
	GetIAM GetIAMFn
}

func NewCreateInstanceProfiles

func NewCreateInstanceProfiles(iamfn GetIAMFn) *StepCreateInstanceProfiles

func (StepCreateInstanceProfiles) Depends

func (StepCreateInstanceProfiles) Depends() []string

func (StepCreateInstanceProfiles) Description

func (StepCreateInstanceProfiles) Description() string

func (StepCreateInstanceProfiles) Name

func (StepCreateInstanceProfiles) Rollback

func (StepCreateInstanceProfiles) Run

type SubnetDescriber

type SubnetDescriber interface {
	DescribeSubnets(*ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
}

type TagService

type TagService interface {
	CreateTags(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error)
}

Jump to

Keyboard shortcuts

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