aws_ec2

package
v0.0.0-...-c456e04 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Implements the 'aws_ec2' target type, which uses AWS SDK to create and terminate EC2 virtual machines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

func (*Factory) NewProvider

func (factory *Factory) NewProvider(target string, hclBlock hcl.Body) (providers.Provider, error)

type Provider

type Provider struct {
	BlockDeviceMappings []*types.BlockDeviceMapping
	AttachVolumes       []*ec2.AttachVolumeInput
	IamInstanceProfile  *types.IamInstanceProfileSpecification
	ImageId             string
	InstanceType        types.InstanceType
	KeyName             string
	Placement           *types.Placement
	SubnetId            *string
	UserData64          *string
	CheckPort           uint16
	Shared              bool
	Linger              time.Duration
	Ec2                 *ec2.Client
}

func (*Provider) IsShared

func (prov *Provider) IsShared() bool

func (*Provider) RunMachine

func (prov *Provider) RunMachine(mach *providers.Machine)

Jump to

Keyboard shortcuts

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