-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform seems to be ignoring skip_credentials_validation flag for AWS provider #18696
Comments
This issue has been automatically migrated to hashicorp/terraform-provider-aws#5584 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to hashicorp/terraform-provider-aws#5584. |
i have used aws configure which created ~.aws/credentials file, but still terraform init returns error |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
We are trying to use Terraform to create AWS resources in LocalStack. It works correctly if we first authenticate to AWS, but fails when lacking AWS credentials.
Since we are pointing Terraform at LocalStack and not the real AWS, there's no need for Terraform to authenticate to AWS. So we are settings both skip_credentials_validation and skip_metadata_api_check to true. Various blog posts on the internet suggest this as the way to point Terraform to LocalStack, so it presumably worked at some point?
Terraform Version
Terraform Configuration Files
Expected Behavior
When an AWS provider is configured with
skip_credentials_validation = true
, credential validation is skipped.Actual Behavior
Terraform still tries to validate credentials.
Steps to Reproduce
Run
terraform plan
with an AWS provider configured to skip credential validation.Additional Context
Terraform output at the time of credential validation:
The text was updated successfully, but these errors were encountered: