Replies: 4 comments 1 reply
-
Hey, Have you tried other versions of Terraform or OpenTofu? It looks like the subsequent release of Terraform addresses an issue related to what you're experiencing. Also, how are you checking to see that your credentials are valid? Could you run the command |
Beta Was this translation helpful? Give feedback.
-
@yhakbar Thank you very much for your response. Yes, I used aws sts get-caller-identity to confirm the credential on the file is correct. Interestingly, even
|
Beta Was this translation helpful? Give feedback.
-
You mean, both Terraform and Terragrunt to latest (for compatibility)? |
Beta Was this translation helpful? Give feedback.
-
Hi,
Try to run Terragrunt with debug log level https://terragrunt.gruntwork.io/docs/features/work-with-multiple-aws-accounts/ |
Beta Was this translation helpful? Give feedback.
-
I have a Terragrunt project which is fully functioning on a Windows laptop. I switched to a new MacBook M3 Pro recently. I have the same version of Terraform and Terragrunt but running
terragrunt init
on the same project throws the following error.Error in function call; Call to function "get_aws_account_id" failed: InvalidClientTokenId: The security token included in the request is invalid. ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1
I am 100% sure that I have correct credentials on ~/.aws/credentials file. Tried to upgrade terraform/terragrunt to the latest but still failed. Could you please help me.
Additional info:
On Window (Working as expected)
Terraform v1.6.4
on windows_amd64
terragrunt version v0.53.5
On Macbook Pro M3 Max (Not working)
Terraform v1.6.4
on darwin_arm64
terragrunt version v0.53.5
AWS credentials - I am using AWS Identity center and the credential file contains the refreshed token in the below format.
~/.aws/credentials
[accountid_AWSAdministratorAccess]
aws_access_key_id=
aws_secret_access_key=
aws_session_token=
~/.aws/config
[accountid_AWSAdministratorAccess]
region = us-east-1
output = json
Terraform and Terragrunt are installed on Macbook using Homebrew. Tried with tfenv and tgenv to install the version I desired.
Tracked in ticket #110953
Beta Was this translation helpful? Give feedback.
All reactions