terratest icon indicating copy to clipboard operation
terratest copied to clipboard

Error configuring Terraform AWS Provider

Open daviddsp opened this issue 2 years ago • 3 comments

Hi guys

I have a problem with AWS integrations when running my test on my CI/CD have this error: _error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: a0c96b55-24c7-40ae-b975-71d82008a12a, api error InvalidClientTokenId: The security token included in the request is invalid._ I verified my pipeline and have permission from the service account that has access to AWS.

We have an idea, what happens?

daviddsp avatar Dec 28 '22 16:12 daviddsp

Hi, is MFA enabled for the used AWS account? usually, it requires some additional actions in case of MFA

https://aws.amazon.com/premiumsupport/knowledge-center/authenticate-mfa-cli/

denis256 avatar Jan 01 '23 18:01 denis256

Hi @denis256

Thanks for the answer, but actually my MFA is disabled, I only have AsumeRole and roles of AWS that give permission to create resources.

daviddsp avatar Jan 04 '23 20:01 daviddsp