Terraform Version
0.13.6 and 0.12.X
Use-cases
We would like to take advantage of the AWS SSO Credential Provider, which was added to the aws-sdk-go in v1.37.0.
Main.tf might contain
#update to required_providers at some point
provider "aws" {
region = "us-east-1"
version = "~> 3.36"
allowed_account_ids = ["XXXXXXXXXXXX"]
skip_metadata_api_check = false
}
terraform {
backend "s3" {
bucket = "XXXX"
key = "tfstate/xxxx.tfstate"
region = "us-east-1"
skip_metadata_api_check = false
}
}
my ~/.aws/config might look like
[profile AWS_SSO_PROFILE_NAME]
sso_start_url = https://d-XXXXXXXXX.awsapps.com/start/
sso_region = us-east-1
sso_account_id = 123456789012
sso_role_name = AdministratorAccess
region = us-east-1
output = json
Then run
AWS_PROFILE=AWS_SSO_PROFILE_NAME terraform [init | apply | etc]
Attempted Solutions
Not currently possible
Proposal
Would it be possible to bump the version of aws-sdk-go in the latest versions of Terraform 0.12 and 0.13 to v1.37.2 or higher, which would transparently add this capability?
References
Feature added to aws-sdk-go
aws/aws-sdk-go#3755
bugfix
aws/aws-sdk-go#3769
Blogpost:
https://aws.amazon.com/blogs/developer/aws-sso-support-in-the-aws-sdk-for-go/
Terraform Version
0.13.6 and 0.12.X
Use-cases
We would like to take advantage of the AWS SSO Credential Provider, which was added to the aws-sdk-go in v1.37.0.
Main.tf might contain
my
~/.aws/configmight look likeThen run
AWS_PROFILE=AWS_SSO_PROFILE_NAME terraform [init | apply | etc]Attempted Solutions
Not currently possible
Proposal
Would it be possible to bump the version of aws-sdk-go in the latest versions of Terraform 0.12 and 0.13 to v1.37.2 or higher, which would transparently add this capability?
References
Feature added to aws-sdk-go
aws/aws-sdk-go#3755
bugfix
aws/aws-sdk-go#3769
Blogpost:
https://aws.amazon.com/blogs/developer/aws-sso-support-in-the-aws-sdk-for-go/