Documentation ¶
Index ¶
- func DBInstanceStateRefreshFunc(id string, conn *rds.Rds) resource.StateRefreshFunc
- func DBSecurityGroupStateRefreshFunc(id string, conn *rds.Rds) resource.StateRefreshFunc
- func IGAttachStateRefreshFunc(conn *ec2.EC2, id string, expected string) resource.StateRefreshFunc
- func IGStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc
- func InstanceStateRefreshFunc(conn *ec2.EC2, instanceID string) resource.StateRefreshFunc
- func Provider() *schema.Provider
- func RouteTableStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc
- func SGStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc
- func SubnetStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc
- func VPCStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc
- type Config
- type ResourceProvider
- func (p *ResourceProvider) Apply(s *terraform.ResourceState, d *terraform.ResourceDiff) (*terraform.ResourceState, error)
- func (p *ResourceProvider) Configure(c *terraform.ResourceConfig) error
- func (p *ResourceProvider) Diff(s *terraform.ResourceState, c *terraform.ResourceConfig) (*terraform.ResourceDiff, error)
- func (p *ResourceProvider) Refresh(s *terraform.ResourceState) (*terraform.ResourceState, error)
- func (p *ResourceProvider) Resources() []terraform.ResourceType
- func (p *ResourceProvider) Validate(c *terraform.ResourceConfig) ([]string, []error)
- func (p *ResourceProvider) ValidateResource(t string, c *terraform.ResourceConfig) ([]string, []error)
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 ¶
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 ¶
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 ¶
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 ¶
AWSRegion returns the configured region.
TODO(mitchellh): Test in some way.
func (*Config) IsValidRegion ¶
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 (p *ResourceProvider) Apply( s *terraform.ResourceState, d *terraform.ResourceDiff) (*terraform.ResourceState, error)
func (*ResourceProvider) Configure ¶
func (p *ResourceProvider) Configure(c *terraform.ResourceConfig) error
func (*ResourceProvider) Diff ¶
func (p *ResourceProvider) Diff( s *terraform.ResourceState, c *terraform.ResourceConfig) (*terraform.ResourceDiff, error)
func (*ResourceProvider) Refresh ¶
func (p *ResourceProvider) Refresh( s *terraform.ResourceState) (*terraform.ResourceState, error)
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)
Source Files ¶
- config.go
- provider.go
- resource_aws_autoscaling_group.go
- resource_aws_db_instance.go
- resource_aws_db_security_group.go
- resource_aws_eip.go
- resource_aws_elb.go
- resource_aws_instance.go
- resource_aws_internet_gateway.go
- resource_aws_launch_configuration.go
- resource_aws_route53_record.go
- resource_aws_route53_zone.go
- resource_aws_route_table.go
- resource_aws_route_table_association.go
- resource_aws_s3_bucket.go
- resource_aws_security_group.go
- resource_aws_subnet.go
- resource_aws_vpc.go
- resource_provider.go
- resources.go
- structure.go