aws

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2014 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBInstanceStateRefreshFunc

func DBInstanceStateRefreshFunc(id string, conn *rds.Rds) resource.StateRefreshFunc

func DBSecurityGroupStateRefreshFunc

func DBSecurityGroupStateRefreshFunc(id string, conn *rds.Rds) resource.StateRefreshFunc

func IGAttachStateRefreshFunc

func IGAttachStateRefreshFunc(conn *ec2.EC2, id string, expected string) resource.StateRefreshFunc

IGAttachStateRefreshFunc returns a resource.StateRefreshFunc that is used watch the state of an internet gateway's attachment.

func IGStateRefreshFunc

func IGStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc

IGStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an internet gateway.

func InstanceStateRefreshFunc

func InstanceStateRefreshFunc(conn *ec2.EC2, instanceID string) resource.StateRefreshFunc

InstanceStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an EC2 instance.

func Provider

func Provider() *schema.Provider

Provider returns a schema.Provider for AWS.

NOTE: schema.Provider became available long after the AWS provider was started, so resources may not be converted to this new structure yet. This is a WIP. To assist with the migration, make sure any resources you migrate are acceptance tested, then perform the migration.

func RouteTableStateRefreshFunc

func RouteTableStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc

RouteTableStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a RouteTable.

func SGStateRefreshFunc

func SGStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc

SGStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a security group.

func SubnetStateRefreshFunc

func SubnetStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc

SubnetStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Subnet.

func VPCStateRefreshFunc

func VPCStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc

VPCStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a VPC.

Types

type Config

type Config struct {
	AccessKey string `mapstructure:"access_key"`
	SecretKey string `mapstructure:"secret_key"`
	Region    string `mapstructure:"region"`
}

func (*Config) AWSAuth

func (c *Config) AWSAuth() (aws.Auth, error)

AWSAuth returns a valid aws.Auth object for access to AWS services, or an error if the authentication couldn't be resolved.

TODO(mitchellh): Test in some way.

func (*Config) AWSRegion

func (c *Config) AWSRegion() (aws.Region, error)

AWSRegion returns the configured region.

TODO(mitchellh): Test in some way.

func (*Config) IsValidRegion

func (c *Config) IsValidRegion() bool

IsValidRegion returns true if the configured region is a valid AWS region and false if it's not

type ResourceProvider

type ResourceProvider struct {
	Config Config
	// contains filtered or unexported fields
}

func (*ResourceProvider) Apply

func (*ResourceProvider) Configure

func (*ResourceProvider) Diff

func (*ResourceProvider) Refresh

func (*ResourceProvider) Resources

func (p *ResourceProvider) Resources() []terraform.ResourceType

func (*ResourceProvider) Validate

func (p *ResourceProvider) Validate(c *terraform.ResourceConfig) ([]string, []error)

func (*ResourceProvider) ValidateResource

func (p *ResourceProvider) ValidateResource(
	t string, c *terraform.ResourceConfig) ([]string, []error)

Jump to

Keyboard shortcuts

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