1
votes

I have successfully used Terraform import on one AWS account where my credentials were admin. I'm now trying to run the command on a different account, where I have more limited permissions.

Does anyone know specially what AWS policy is needed to run Terraform import?

1
Does the error message returned not say what action was being attempted when permission was denied?James Thorpe
Error importing: 1 error(s) occurred: * provider.aws: InvalidClientTokenId: The security token included in the request is invalid. status code: 403, request id: <>tye649

1 Answers

2
votes

Set the TF_LOG environment variable to DEBUG before your run Terraform.

This will out the exact call that is returning 403.