Documentation ¶
Index ¶
- func AssumeIamRole(iamRoleArn string) (*sts.Credentials, error)
- func AssumeRoleAndUpdateEnvIfNecessary(terragruntOptions *options.TerragruntOptions) error
- func CreateAwsSession(config *AwsSessionConfig, terragruntOptions *options.TerragruntOptions) (*session.Session, error)
- func GetAWSAccountID(terragruntOptions *options.TerragruntOptions) (string, error)
- func GetAWSCallerIdentity(terragruntOptions *options.TerragruntOptions) (sts.GetCallerIdentityOutput, error)
- func GetAWSIdentityArn(terragruntOptions *options.TerragruntOptions) (string, error)
- func GetAWSUserID(terragruntOptions *options.TerragruntOptions) (string, error)
- type AwsSessionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssumeIamRole ¶ added in v0.13.11
func AssumeIamRole(iamRoleArn string) (*sts.Credentials, error)
Make API calls to AWS to assume the IAM role specified and return the temporary AWS credentials to use that role
func AssumeRoleAndUpdateEnvIfNecessary ¶ added in v0.27.4
func AssumeRoleAndUpdateEnvIfNecessary(terragruntOptions *options.TerragruntOptions) error
Assume an IAM role, if one is specified, by making API calls to Amazon STS and setting the environment variables we get back inside of terragruntOptions.Env
func CreateAwsSession ¶ added in v0.9.5
func CreateAwsSession(config *AwsSessionConfig, terragruntOptions *options.TerragruntOptions) (*session.Session, error)
Returns an AWS session object for the given config region (required), profile name (optional), and IAM role to assume (optional), ensuring that the credentials are available
func GetAWSAccountID ¶ added in v0.21.10
func GetAWSAccountID(terragruntOptions *options.TerragruntOptions) (string, error)
Get the AWS account ID of the current session configuration
func GetAWSCallerIdentity ¶ added in v0.21.10
func GetAWSCallerIdentity(terragruntOptions *options.TerragruntOptions) (sts.GetCallerIdentityOutput, error)
Return the AWS caller identity associated with the current set of credentials
func GetAWSIdentityArn ¶ added in v0.21.10
func GetAWSIdentityArn(terragruntOptions *options.TerragruntOptions) (string, error)
Get the ARN of the AWS identity associated with the current set of credentials
func GetAWSUserID ¶ added in v0.21.10
func GetAWSUserID(terragruntOptions *options.TerragruntOptions) (string, error)
Get the AWS user ID of the current session configuration
Types ¶
type AwsSessionConfig ¶ added in v0.16.9
type AwsSessionConfig struct { Region string CustomS3Endpoint string Profile string RoleArn string CredsFilename string S3ForcePathStyle bool DisableComputeChecksums bool ExternalID string SessionName string }
A representation of the configuration options for an AWS Session