aws

package
Version: v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2014 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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(ec2conn *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 added in v0.2.0

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

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 AWSClient added in v0.3.5

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

type Config

type Config struct {
	AccessKey string
	SecretKey string
	Region    string
}

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) Client added in v0.3.5

func (c *Config) Client() (interface{}, error)

Client configures and returns a fully initailized AWSClient

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

Jump to

Keyboard shortcuts

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