Documentation ¶
Index ¶
- func GetAccountInfo(iamconn *iam.IAM, stsconn *sts.STS, authProviderName string) (string, string, error)
- func GetCredentials(c *Config) (*awsCredentials.Credentials, error)
- func HostedZoneIDForRegion(region string) string
- 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 NGStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc
- func Provider() terraform.ResourceProvider
- 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
- func WebsiteDomainUrl(region string) string
- type AWSClient
- type ByGroupPair
- type Config
- type IAMPolicyDoc
- type IAMPolicyStatement
- type IAMPolicyStatementCondition
- type IAMPolicyStatementConditionSet
- type IAMPolicyStatementPrincipal
- type IAMPolicyStatementPrincipalSet
- type Reassignment
- type S3Website
- type TunnelInfo
- type XmlIpsecTunnel
- type XmlVpnConnectionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountInfo ¶
func GetCredentials ¶
func GetCredentials(c *Config) (*awsCredentials.Credentials, error)
This function is responsible for reading credentials from the environment in the case that they're not explicitly specified in the Terraform configuration.
func HostedZoneIDForRegion ¶
Returns the hosted zone ID for an S3 website endpoint region. This can be used as input to the aws_route53_record resource's zone_id argument.
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 NGStateRefreshFunc ¶
func NGStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc
NGStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a NAT Gateway.
func Provider ¶
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.
func WebsiteDomainUrl ¶
Types ¶
type ByGroupPair ¶
type ByGroupPair []*ec2.UserIdGroupPair
ByGroupPair implements sort.Interface for []*ec2.UserIDGroupPairs based on GroupID or GroupName field (only one should be set).
func (ByGroupPair) Len ¶
func (b ByGroupPair) Len() int
func (ByGroupPair) Less ¶
func (b ByGroupPair) Less(i, j int) bool
func (ByGroupPair) Swap ¶
func (b ByGroupPair) Swap(i, j int)
type Config ¶
type Config struct { AccessKey string SecretKey string CredsFilename string Profile string Token string Region string MaxRetries int AssumeRoleARN string AssumeRoleExternalID string AssumeRoleSessionName string AssumeRolePolicy string AllowedAccountIds []interface{} ForbiddenAccountIds []interface{} Ec2Endpoint string IamEndpoint string ElbEndpoint string S3Endpoint string Insecure bool SkipRegionValidation bool SkipMetadataApiCheck bool S3ForcePathStyle bool }
func (*Config) ValidateAccountId ¶
ValidateAccountId returns a context-specific error if the configured account id is explicitly forbidden or not authorised; and nil if it is authorised.
func (*Config) ValidateRegion ¶
ValidateRegion returns an error if the configured region is not a valid aws region and nil otherwise.
type IAMPolicyDoc ¶
type IAMPolicyDoc struct { Version string `json:",omitempty"` Id string `json:",omitempty"` Statements []*IAMPolicyStatement `json:"Statement"` }
type IAMPolicyStatement ¶
type IAMPolicyStatement struct { Sid string Effect string `json:",omitempty"` Actions interface{} `json:"Action,omitempty"` NotActions interface{} `json:"NotAction,omitempty"` Resources interface{} `json:"Resource,omitempty"` NotResources interface{} `json:"NotResource,omitempty"` Principals IAMPolicyStatementPrincipalSet `json:"Principal,omitempty"` NotPrincipals IAMPolicyStatementPrincipalSet `json:"NotPrincipal,omitempty"` Conditions IAMPolicyStatementConditionSet `json:"Condition,omitempty"` }
type IAMPolicyStatementConditionSet ¶
type IAMPolicyStatementConditionSet []IAMPolicyStatementCondition
func (IAMPolicyStatementConditionSet) MarshalJSON ¶
func (cs IAMPolicyStatementConditionSet) MarshalJSON() ([]byte, error)
type IAMPolicyStatementPrincipal ¶
type IAMPolicyStatementPrincipal struct { Type string Identifiers interface{} }
type IAMPolicyStatementPrincipalSet ¶
type IAMPolicyStatementPrincipalSet []IAMPolicyStatementPrincipal
func (IAMPolicyStatementPrincipalSet) MarshalJSON ¶
func (ps IAMPolicyStatementPrincipalSet) MarshalJSON() ([]byte, error)
type Reassignment ¶
type Reassignment struct {
// contains filtered or unexported fields
}
type TunnelInfo ¶
type XmlIpsecTunnel ¶
type XmlIpsecTunnel struct { OutsideAddress string `xml:"vpn_gateway>tunnel_outside_address>ip_address"` }
type XmlVpnConnectionConfig ¶
type XmlVpnConnectionConfig struct {
Tunnels []XmlIpsecTunnel `xml:"ipsec_tunnel"`
}
func (XmlVpnConnectionConfig) Len ¶
func (slice XmlVpnConnectionConfig) Len() int
func (XmlVpnConnectionConfig) Less ¶
func (slice XmlVpnConnectionConfig) Less(i, j int) bool
func (XmlVpnConnectionConfig) Swap ¶
func (slice XmlVpnConnectionConfig) Swap(i, j int)
Source Files ¶
- auth_helpers.go
- config.go
- data_source_osc_ami.go
- data_source_osc_availability_zone.go
- data_source_osc_availability_zones.go
- data_source_osc_billing_service_account.go
- data_source_osc_caller_identity.go
- data_source_osc_canonical_user_id.go
- data_source_osc_common_schema.go
- data_source_osc_ebs_snapshot.go
- data_source_osc_ebs_volume.go
- data_source_osc_eip.go
- data_source_osc_elb_hosted_zone_id.go
- data_source_osc_elb_service_account.go
- data_source_osc_iam_account_alias.go
- data_source_osc_iam_policy_document.go
- data_source_osc_iam_server_certificate.go
- data_source_osc_instance.go
- data_source_osc_ip_ranges.go
- data_source_osc_partition.go
- data_source_osc_prefix_list.go
- data_source_osc_region.go
- data_source_osc_route_table.go
- data_source_osc_s3_bucket_object.go
- data_source_osc_security_group.go
- data_source_osc_subnet.go
- data_source_osc_vpc.go
- data_source_osc_vpc_endpoint.go
- data_source_osc_vpc_endpoint_service.go
- data_source_osc_vpc_peering_connection.go
- diff_suppress_funcs.go
- ec2_filters.go
- hosted_zones.go
- iam_policy_model.go
- import_osc_db_event_subscription.go
- import_osc_network_acl.go
- import_osc_route_table.go
- import_osc_s3_bucket.go
- import_osc_security_group.go
- network_acl_entry.go
- oscerr.go
- provider.go
- resource_osc_ami.go
- resource_osc_ami_copy.go
- resource_osc_ami_from_instance.go
- resource_osc_ami_launch_permission.go
- resource_osc_api_gateway_account.go
- resource_osc_api_gateway_api_key.go
- resource_osc_api_gateway_authorizer.go
- resource_osc_api_gateway_base_path_mapping.go
- resource_osc_api_gateway_client_certificate.go
- resource_osc_api_gateway_integration.go
- resource_osc_api_gateway_integration_response.go
- resource_osc_api_gateway_method.go
- resource_osc_api_gateway_method_response.go
- resource_osc_api_gateway_model.go
- resource_osc_api_gateway_resource.go
- resource_osc_api_gateway_rest_api.go
- resource_osc_app_cookie_stickiness_policy.go
- resource_osc_customer_gateway.go
- resource_osc_default_network_acl.go
- resource_osc_default_route_table.go
- resource_osc_default_security_group.go
- resource_osc_ebs_snapshot.go
- resource_osc_ebs_volume.go
- resource_osc_eip.go
- resource_osc_eip_association.go
- resource_osc_elb.go
- resource_osc_elb_attachment.go
- resource_osc_flow_log.go
- resource_osc_iam_access_key.go
- resource_osc_iam_account_password_policy.go
- resource_osc_iam_group.go
- resource_osc_iam_group_membership.go
- resource_osc_iam_group_policy.go
- resource_osc_iam_group_policy_attachment.go
- resource_osc_iam_instance_profile.go
- resource_osc_iam_policy.go
- resource_osc_iam_policy_attachment.go
- resource_osc_iam_role.go
- resource_osc_iam_role_policy.go
- resource_osc_iam_role_policy_attachment.go
- resource_osc_iam_saml_provider.go
- resource_osc_iam_server_certificate.go
- resource_osc_iam_user.go
- resource_osc_iam_user_login_profile.go
- resource_osc_iam_user_policy.go
- resource_osc_iam_user_policy_attachment.go
- resource_osc_iam_user_ssh_key.go
- resource_osc_instance.go
- resource_osc_instance_migrate.go
- resource_osc_internet_gateway.go
- resource_osc_key_pair.go
- resource_osc_key_pair_migrate.go
- resource_osc_lb_cookie_stickiness_policy.go
- resource_osc_lb_ssl_negotiation_policy.go
- resource_osc_load_balancer_backend_server_policy.go
- resource_osc_load_balancer_listener_policy.go
- resource_osc_load_balancer_policy.go
- resource_osc_main_route_table_association.go
- resource_osc_nat_gateway.go
- resource_osc_network_acl.go
- resource_osc_network_acl_rule.go
- resource_osc_network_interface.go
- resource_osc_placement_group.go
- resource_osc_proxy_protocol_policy.go
- resource_osc_route.go
- resource_osc_route_table.go
- resource_osc_route_table_association.go
- resource_osc_s3_bucket.go
- resource_osc_s3_bucket_notification.go
- resource_osc_s3_bucket_object.go
- resource_osc_s3_bucket_policy.go
- resource_osc_security_group.go
- resource_osc_security_group_rule.go
- resource_osc_security_group_rule_migrate.go
- resource_osc_snapshot_create_volume_permission.go
- resource_osc_subnet.go
- resource_osc_volume_attachment.go
- resource_osc_vpc.go
- resource_osc_vpc_dhcp_options.go
- resource_osc_vpc_dhcp_options_association.go
- resource_osc_vpc_endpoint.go
- resource_osc_vpc_endpoint_route_table_association.go
- resource_osc_vpc_peering_connection.go
- resource_osc_vpc_peering_connection_accepter.go
- resource_osc_vpn_connection.go
- resource_osc_vpn_gateway.go
- resource_osc_vpn_gateway_attachment.go
- resource_vpn_connection_route.go
- s3_tags.go
- structure.go
- tags.go
- tagsEC.go
- tagsELB.go
- tagsInspector.go
- utils.go
- validators.go