awstasks

package
v0.0.0-...-d54b621 Latest Latest
Warning

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

Go to latest
Published: May 13, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MaxUserDataSize = 16384

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoscalingGroup

type AutoscalingGroup struct {
	Name *string

	UserData fi.Resource

	MinSize *int64
	MaxSize *int64
	Subnet  *Subnet
	Tags    map[string]string

	ImageID             *string
	InstanceType        *string
	SSHKey              *SSHKey
	SecurityGroups      []*SecurityGroup
	AssociatePublicIP   *bool
	BlockDeviceMappings []*BlockDeviceMapping
	IAMInstanceProfile  *IAMInstanceProfile
	// contains filtered or unexported fields
}

This one is a little weird because we can't update a launch configuration So we have to create the launch configuration as part of the group

func (*AutoscalingGroup) CheckChanges

func (s *AutoscalingGroup) CheckChanges(a, e, changes *AutoscalingGroup) error

func (*AutoscalingGroup) CompareWithID

func (s *AutoscalingGroup) CompareWithID() *string

func (*AutoscalingGroup) Find

func (*AutoscalingGroup) RenderAWS

func (_ *AutoscalingGroup) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *AutoscalingGroup) error

func (*AutoscalingGroup) Run

func (e *AutoscalingGroup) Run(c *fi.Context) error

type BlockDeviceMapping

type BlockDeviceMapping struct {
	DeviceName  *string
	VirtualName *string
}

func BlockDeviceMappingFromAutoscaling

func BlockDeviceMappingFromAutoscaling(i *autoscaling.BlockDeviceMapping) *BlockDeviceMapping

func BlockDeviceMappingFromEC2

func BlockDeviceMappingFromEC2(i *ec2.BlockDeviceMapping) *BlockDeviceMapping

func (*BlockDeviceMapping) ToAutoscaling

func (*BlockDeviceMapping) ToEC2

type DHCPOptions

type DHCPOptions struct {
	ID                *string
	Name              *string
	DomainName        *string
	DomainNameServers *string
}

func (*DHCPOptions) CheckChanges

func (s *DHCPOptions) CheckChanges(a, e, changes *DHCPOptions) error

func (*DHCPOptions) CompareWithID

func (s *DHCPOptions) CompareWithID() *string

func (*DHCPOptions) Find

func (e *DHCPOptions) Find(c *fi.Context) (*DHCPOptions, error)

func (*DHCPOptions) RenderAWS

func (_ *DHCPOptions) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *DHCPOptions) error

func (*DHCPOptions) Run

func (e *DHCPOptions) Run(c *fi.Context) error

func (*DHCPOptions) String

func (e *DHCPOptions) String() string

type EBSVolume

type EBSVolume struct {
	ID               *string
	AvailabilityZone *string
	VolumeType       *string
	SizeGB           *int64
	Name             *string
}

func (*EBSVolume) CheckChanges

func (_ *EBSVolume) CheckChanges(a, e, changes *EBSVolume) error

func (*EBSVolume) CompareWithID

func (e *EBSVolume) CompareWithID() *string

func (*EBSVolume) Find

func (e *EBSVolume) Find(context *fi.Context) (*EBSVolume, error)

func (*EBSVolume) FindResourceID

func (e *EBSVolume) FindResourceID(c fi.Cloud) (*string, error)

func (*EBSVolume) RenderAWS

func (_ *EBSVolume) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *EBSVolume) error

func (*EBSVolume) Run

func (e *EBSVolume) Run(c *fi.Context) error

func (*EBSVolume) String

func (e *EBSVolume) String() string

type ElasticIP

type ElasticIP struct {
	ID       *string
	PublicIP *string

	// Because ElasticIPs don't supporting tagging (sadly), we instead tag on
	// a different resource
	TagUsingKey   *string
	TagOnResource fi.Task
}

func (*ElasticIP) CheckChanges

func (s *ElasticIP) CheckChanges(a, e, changes *ElasticIP) error

func (*ElasticIP) CompareWithID

func (e *ElasticIP) CompareWithID() *string

func (*ElasticIP) Find

func (e *ElasticIP) Find(context *fi.Context) (*ElasticIP, error)

func (*ElasticIP) FindAddress

func (e *ElasticIP) FindAddress(c fi.Cloud) (*string, error)

func (*ElasticIP) RenderAWS

func (_ *ElasticIP) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *ElasticIP) error

func (*ElasticIP) Run

func (e *ElasticIP) Run(c *fi.Context) error

func (*ElasticIP) String

func (e *ElasticIP) String() string

type IAMInstanceProfile

type IAMInstanceProfile struct {
	ID   *string
	Name *string
}

func (*IAMInstanceProfile) CheckChanges

func (s *IAMInstanceProfile) CheckChanges(a, e, changes *IAMInstanceProfile) error

func (*IAMInstanceProfile) CompareWithID

func (e *IAMInstanceProfile) CompareWithID() *string

func (*IAMInstanceProfile) Find

func (*IAMInstanceProfile) RenderAWS

func (_ *IAMInstanceProfile) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *IAMInstanceProfile) error

func (*IAMInstanceProfile) Run

func (e *IAMInstanceProfile) Run(c *fi.Context) error

func (*IAMInstanceProfile) String

func (e *IAMInstanceProfile) String() string

type IAMInstanceProfileRole

type IAMInstanceProfileRole struct {
	InstanceProfile *IAMInstanceProfile
	Role            *IAMRole
}

func (*IAMInstanceProfileRole) CheckChanges

func (s *IAMInstanceProfileRole) CheckChanges(a, e, changes *IAMInstanceProfileRole) error

func (*IAMInstanceProfileRole) Find

func (*IAMInstanceProfileRole) RenderAWS

func (_ *IAMInstanceProfileRole) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *IAMInstanceProfileRole) error

func (*IAMInstanceProfileRole) Run

func (*IAMInstanceProfileRole) String

func (e *IAMInstanceProfileRole) String() string

type IAMRole

type IAMRole struct {
	ID                 *string
	Name               *string
	RolePolicyDocument fi.Resource // "inline" IAM policy
}

func (*IAMRole) CheckChanges

func (s *IAMRole) CheckChanges(a, e, changes *IAMRole) error

func (*IAMRole) CompareWithID

func (e *IAMRole) CompareWithID() *string

func (*IAMRole) Find

func (e *IAMRole) Find(c *fi.Context) (*IAMRole, error)

func (*IAMRole) RenderAWS

func (_ *IAMRole) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *IAMRole) error

func (*IAMRole) Run

func (e *IAMRole) Run(c *fi.Context) error

func (*IAMRole) String

func (e *IAMRole) String() string

type IAMRolePolicy

type IAMRolePolicy struct {
	ID             *string
	Name           *string
	Role           *IAMRole
	PolicyDocument fi.Resource
}

func (*IAMRolePolicy) CheckChanges

func (s *IAMRolePolicy) CheckChanges(a, e, changes *IAMRolePolicy) error

func (*IAMRolePolicy) Find

func (e *IAMRolePolicy) Find(c *fi.Context) (*IAMRolePolicy, error)

func (*IAMRolePolicy) RenderAWS

func (_ *IAMRolePolicy) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *IAMRolePolicy) error

func (*IAMRolePolicy) Run

func (e *IAMRolePolicy) Run(c *fi.Context) error

func (*IAMRolePolicy) String

func (e *IAMRolePolicy) String() string

type Instance

type Instance struct {
	ID *string

	UserData fi.Resource

	Subnet           *Subnet
	PrivateIPAddress *string

	Name *string
	Tags map[string]string

	ImageID             *string
	InstanceType        *string
	SSHKey              *SSHKey
	SecurityGroups      []*SecurityGroup
	AssociatePublicIP   *bool
	BlockDeviceMappings []*BlockDeviceMapping
	IAMInstanceProfile  *IAMInstanceProfile
}

func (*Instance) CheckChanges

func (_ *Instance) CheckChanges(a, e, changes *Instance) error

func (*Instance) CompareWithID

func (s *Instance) CompareWithID() *string

func (*Instance) Find

func (e *Instance) Find(c *fi.Context) (*Instance, error)

func (*Instance) RenderAWS

func (_ *Instance) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *Instance) error

func (*Instance) Run

func (e *Instance) Run(c *fi.Context) error

type InstanceElasticIPAttachment

type InstanceElasticIPAttachment struct {
	Instance  *Instance
	ElasticIP *ElasticIP
}

func (*InstanceElasticIPAttachment) CheckChanges

func (s *InstanceElasticIPAttachment) CheckChanges(a, e, changes *InstanceElasticIPAttachment) error

func (*InstanceElasticIPAttachment) Find

func (*InstanceElasticIPAttachment) RenderAWS

func (*InstanceElasticIPAttachment) Run

func (*InstanceElasticIPAttachment) String

func (e *InstanceElasticIPAttachment) String() string

type InstanceVolumeAttachment

type InstanceVolumeAttachment struct {
	Instance *Instance
	Volume   *EBSVolume
	Device   *string
}

func (*InstanceVolumeAttachment) CheckChanges

func (s *InstanceVolumeAttachment) CheckChanges(a, e, changes *InstanceVolumeAttachment) error

func (*InstanceVolumeAttachment) Find

func (*InstanceVolumeAttachment) RenderAWS

func (*InstanceVolumeAttachment) Run

func (*InstanceVolumeAttachment) String

func (e *InstanceVolumeAttachment) String() string

type InternetGateway

type InternetGateway struct {
	Name *string
	ID   *string
}

func (*InternetGateway) CheckChanges

func (s *InternetGateway) CheckChanges(a, e, changes *InternetGateway) error

func (*InternetGateway) CompareWithID

func (e *InternetGateway) CompareWithID() *string

func (*InternetGateway) Find

func (*InternetGateway) RenderAWS

func (_ *InternetGateway) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *InternetGateway) error

func (*InternetGateway) Run

func (e *InternetGateway) Run(c *fi.Context) error

func (*InternetGateway) String

func (e *InternetGateway) String() string

type InternetGatewayAttachment

type InternetGatewayAttachment struct {
	VPC             *VPC
	InternetGateway *InternetGateway
}

func (*InternetGatewayAttachment) CheckChanges

func (s *InternetGatewayAttachment) CheckChanges(a, e, changes *InternetGatewayAttachment) error

func (*InternetGatewayAttachment) Find

func (*InternetGatewayAttachment) RenderAWS

func (*InternetGatewayAttachment) Run

func (*InternetGatewayAttachment) String

func (e *InternetGatewayAttachment) String() string

type Route

type Route struct {
	RouteTable      *RouteTable
	InternetGateway *InternetGateway
	Instance        *Instance
	CIDR            *string
}

func (*Route) CheckChanges

func (s *Route) CheckChanges(a, e, changes *Route) error

func (*Route) Find

func (e *Route) Find(c *fi.Context) (*Route, error)

func (*Route) RenderAWS

func (_ *Route) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *Route) error

func (*Route) Run

func (e *Route) Run(c *fi.Context) error

func (*Route) String

func (e *Route) String() string

type RouteTable

type RouteTable struct {
	Name *string
	ID   *string
	VPC  *VPC
}

func (*RouteTable) CheckChanges

func (s *RouteTable) CheckChanges(a, e, changes *RouteTable) error

func (*RouteTable) CompareWithID

func (s *RouteTable) CompareWithID() *string

func (*RouteTable) Find

func (e *RouteTable) Find(c *fi.Context) (*RouteTable, error)

func (*RouteTable) RenderAWS

func (_ *RouteTable) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *RouteTable) error

func (*RouteTable) Run

func (e *RouteTable) Run(c *fi.Context) error

func (*RouteTable) String

func (e *RouteTable) String() string

type RouteTableAssociation

type RouteTableAssociation struct {
	ID         *string
	RouteTable *RouteTable
	Subnet     *Subnet
}

func (*RouteTableAssociation) CheckChanges

func (s *RouteTableAssociation) CheckChanges(a, e, changes *RouteTableAssociation) error

func (*RouteTableAssociation) CompareWithID

func (s *RouteTableAssociation) CompareWithID() *string

func (*RouteTableAssociation) Find

func (*RouteTableAssociation) RenderAWS

func (_ *RouteTableAssociation) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *RouteTableAssociation) error

func (*RouteTableAssociation) Run

func (*RouteTableAssociation) String

func (e *RouteTableAssociation) String() string

type SSHKey

type SSHKey struct {
	Name      *string
	PublicKey fi.Resource

	KeyFingerprint *string
}

func (*SSHKey) CheckChanges

func (s *SSHKey) CheckChanges(a, e, changes *SSHKey) error

func (*SSHKey) CompareWithID

func (e *SSHKey) CompareWithID() *string

func (*SSHKey) Find

func (e *SSHKey) Find(c *fi.Context) (*SSHKey, error)

func (*SSHKey) RenderAWS

func (_ *SSHKey) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *SSHKey) error

func (*SSHKey) Run

func (e *SSHKey) Run(c *fi.Context) error

func (*SSHKey) String

func (e *SSHKey) String() string

type SecurityGroup

type SecurityGroup struct {
	ID          *string
	Name        *string
	Description *string
	VPC         *VPC
}

func (*SecurityGroup) CheckChanges

func (_ *SecurityGroup) CheckChanges(a, e, changes *SecurityGroup) error

func (*SecurityGroup) CompareWithID

func (e *SecurityGroup) CompareWithID() *string

func (*SecurityGroup) Find

func (e *SecurityGroup) Find(c *fi.Context) (*SecurityGroup, error)

func (*SecurityGroup) RenderAWS

func (_ *SecurityGroup) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *SecurityGroup) error

func (*SecurityGroup) Run

func (e *SecurityGroup) Run(c *fi.Context) error

func (*SecurityGroup) String

func (e *SecurityGroup) String() string

type SecurityGroupIngress

type SecurityGroupIngress struct {
	SecurityGroup *SecurityGroup
	CIDR          *string
	Protocol      *string
	FromPort      *int64
	ToPort        *int64
	SourceGroup   *SecurityGroup
}

func (*SecurityGroupIngress) CheckChanges

func (_ *SecurityGroupIngress) CheckChanges(a, e, changes *SecurityGroupIngress) error

func (*SecurityGroupIngress) Find

func (*SecurityGroupIngress) RenderAWS

func (_ *SecurityGroupIngress) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *SecurityGroupIngress) error

func (*SecurityGroupIngress) Run

func (e *SecurityGroupIngress) Run(c *fi.Context) error

func (*SecurityGroupIngress) String

func (e *SecurityGroupIngress) String() string

type Subnet

type Subnet struct {
	Name             *string
	ID               *string
	VPC              *VPC
	AvailabilityZone *string
	CIDR             *string
}

func (*Subnet) CheckChanges

func (s *Subnet) CheckChanges(a, e, changes *Subnet) error

func (*Subnet) CompareWithID

func (s *Subnet) CompareWithID() *string

func (*Subnet) Find

func (e *Subnet) Find(c *fi.Context) (*Subnet, error)

func (*Subnet) RenderAWS

func (_ *Subnet) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *Subnet) error

func (*Subnet) Run

func (e *Subnet) Run(c *fi.Context) error

func (*Subnet) String

func (e *Subnet) String() string

type TaggableResource

type TaggableResource interface {
	FindResourceID(c fi.Cloud) (*string, error)
}

type VPC

type VPC struct {
	Name               *string
	ID                 *string
	CIDR               *string
	EnableDNSHostnames *bool
	EnableDNSSupport   *bool
}

func (*VPC) CheckChanges

func (s *VPC) CheckChanges(a, e, changes *VPC) error

func (*VPC) CompareWithID

func (s *VPC) CompareWithID() *string

func (*VPC) Find

func (e *VPC) Find(c *fi.Context) (*VPC, error)

func (*VPC) RenderAWS

func (_ *VPC) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *VPC) error

func (*VPC) Run

func (e *VPC) Run(c *fi.Context) error

func (*VPC) String

func (e *VPC) String() string

type VPCDHCPOptionsAssociation

type VPCDHCPOptionsAssociation struct {
	VPC         *VPC
	DHCPOptions *DHCPOptions
}

func (*VPCDHCPOptionsAssociation) CheckChanges

func (s *VPCDHCPOptionsAssociation) CheckChanges(a, e, changes *VPCDHCPOptionsAssociation) error

func (*VPCDHCPOptionsAssociation) Find

func (*VPCDHCPOptionsAssociation) RenderAWS

func (*VPCDHCPOptionsAssociation) Run

func (*VPCDHCPOptionsAssociation) String

func (e *VPCDHCPOptionsAssociation) String() string

Jump to

Keyboard shortcuts

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