Documentation ¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
- func GetAccountInfo(iamconn *iam.IAM, stsconn *sts.STS, authProviderName string) (string, string, error)
- func GetCredentials(c *Config) (*awsCredentials.Credentials, error)
- func GetSupportedEC2Platforms(conn *ec2.EC2) ([]string, error)
- func Provider() terraform.ResourceProvider
- type AWSClient
- type Config
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 Provider ¶
func Provider() terraform.ResourceProvider
Provider returns a terraform.ResourceProvider.
Types ¶
type AWSClient ¶
type AWSClient struct {
// contains filtered or unexported fields
}
func (*AWSClient) IsChinaCloud ¶
func (*AWSClient) IsGovCloud ¶
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{} AcmEndpoint string ApigatewayEndpoint string CloudFormationEndpoint string CloudWatchEndpoint string CloudWatchEventsEndpoint string CloudWatchLogsEndpoint string DynamoDBEndpoint string DeviceFarmEndpoint string Ec2Endpoint string EcsEndpoint string EcrEndpoint string ElbEndpoint string IamEndpoint string KinesisEndpoint string KmsEndpoint string LambdaEndpoint string RdsEndpoint string R53Endpoint string S3Endpoint string SnsEndpoint string SqsEndpoint string StsEndpoint string Insecure bool SkipCredsValidation bool SkipGetEC2Platforms bool SkipRegionValidation bool SkipRequestingAccountId 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) ValidateCredentials ¶
Validate credentials early and fail before we do any graph walking.
func (*Config) ValidateRegion ¶
ValidateRegion returns an error if the configured region is not a valid aws region and nil otherwise.