You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Terraform v0.11.14
Affected Resource(s)
provider "aws"
Terraform Configuration Files
settings.tf
terraform {
required_version ="0.11.14"backend"s3" {
role_arn ="arn:aws:iam::xxxxx:role/cross_account/sre"
workspace_key_prefix ="xxxxxx"
bucket ="xxxxxx"
key ="xxxxxx.tfstate"
encrypt ="true"
region ="ap-northeast-1"
}
}
provider"aws" {
region ="ap-northeast-1"
version ="2.15.0"assume_role {
session_name ="terraform"
role_arn ="arn:aws:iam::xxxxxx:role/cross_account/sre"
}
}
provider"aws" {
region ="ap-southeast-1"
version ="2.15.0"
alias ="ap-southeast-1"assume_role {
session_name ="terraform"
role_arn ="arn:aws:iam::xxxxxx:role/cross_account/sre"
}
}
override.tf
terraform {
required_version ="0.11.14"backend"s3" {
role_arn ="arn:aws:iam::xxxxx:role/services/terraform_ops"
workspace_key_prefix ="xxxxxx"
bucket ="xxxxxx"
key ="xxxxxx.tfstate"
encrypt ="true"
region ="ap-northeast-1"
}
}
provider"aws" {
region ="ap-northeast-1"
version ="2.15.0"assume_role {
session_name ="terraform"
role_arn ="arn:aws:iam::xxxxxx:role/services/terraform_ops"
}
}
provider"aws" {
region ="ap-southeast-1"
version ="2.15.0"
alias ="ap-southeast-1"assume_role {
session_name ="terraform"
role_arn ="arn:aws:iam::xxxxxx:role/services/terraform_ops"
}
}
The only difference between settings.tf and the override file is the roles have been switched from arn:aws:iam::xxxxxx:role/cross_account/sre to arn:aws:iam::xxxxxx:role/services/terraform_ops.
Hey @wandergeek 馃憢 Thank you for taking the time to file this issue. Given that there's been a number of Terraform and AWS provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior?
Community Note
Terraform Version
Terraform v0.11.14
Affected Resource(s)
provider "aws"
Terraform Configuration Files
settings.tf
override.tf
The only difference between settings.tf and the override file is the roles have been switched from
arn:aws:iam::xxxxxx:role/cross_account/sre
toarn:aws:iam::xxxxxx:role/services/terraform_ops
.Debug Output
Full output: https://gist.github.com/wandergeek/09ee3117c12cc47e5a5efef038e026dd
Expected Behavior
I should be able to override the role_arn for aws provider aliases.
Actual Behavior
Error message
Steps to Reproduce
make init
Important Factoids
The text was updated successfully, but these errors were encountered: