Open jaun-rg opened 4 years ago
I’m also experiencing this
What is the current status of this issue?
encountering this as well, any news here ?
same as #14108
I have put a comment there with an ugly workaround
Encountered as well when using STS service to get temporary credentials.
Can be worked around by using access key/secret key directly for an IAM user
In my case I am having this issue when my credentials are supplied by aws-vault and only when I am using Terraform to create IAM resources. All other resources provision without issues, but IAM resources fail with InvalidClientTokenId: The security token included in the request is invalid
.
In my case I am having this issue when my credentials are supplied by aws-vault and only when I am using Terraform to create IAM resources. All other resources provision without issues, but IAM resources fail with
InvalidClientTokenId: The security token included in the request is invalid
.
Experiencing the same issues as well with IAM resources in conjunction with using AWS vault. Here these are the versions I'm currently on:
Terraform v1.2.4
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.38.0
+ provider registry.terraform.io/hashicorp/dns v3.2.3
Your version of Terraform is out of date! The latest version
is 1.3.6. You can update by downloading from https://www.terraform.io/downloads.html
If you're using aws-vault and you have MFA enabled this worked the following worked for me: https://github.com/99designs/aws-vault/issues/260#issuecomment-397601165
fyi @domeales-paloit
Terraform Version
Terraform v0.12.26
Affected Resource(s)
Terraform Configuration Files
provider.tf
Debug Output
Expected Behavior
Actual Behavior
No create resources by InvalidClientTokenId Error
Steps to Reproduce
export AWS_ACCESS_KEY_ID="token value" export AWS_SECRET_ACCESS_KEY="secret value" export AWS_DEFAULT_REGION="region to work"
terraform plan terrafrom apply
Additional Note
using provider.aws v2.63.0, the provider work fine