-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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 ignores skip_credentials_validation flag for s3 backend with custom endpoint. #33983
Comments
Does the s3 backend need to expose the |
This parameter is absolutely necessary if you want to use S3-compatible storage systems such as Ceph, Minio, Digitalocean, OVH or Scaleway as a backend, as they do not implement the STS API. |
For the above pull req would we use just the param in 1.6.1 using: skip_requesting_account_id = true |
It still does not work in v1.6.2 Tried to set
but keep getting
|
@josephpage @jar-b Any idies how fix this? |
I got it working replacing
by
then terraform init -reconfigure |
Moved from tf 1.6.0 to 1.6.4 and by adding
|
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. |
Terraform Version
Terraform Configuration Files
Provider config:
tfvars:
Debug Output
Initializing the backend...
╷
│ Error: Retrieving AWS account details: AWS account ID not previously found and failed retrieving via all available methods. See https://www.terraform.io/docs/providers/aws/index.html#skip_requesting_account_id for workaround and implications. Errors: 2 errors occurred:
│ * retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: XXX, api error InvalidClientTokenId: The security token included in the request is invalid.
│ * retrieving account information via iam:ListRoles: operation error IAM: ListRoles, https response error StatusCode: 403, RequestID: XXX, api error InvalidClientTokenId: The security token included in the request is invalid.
│
│
│
│
╵
Error: Process completed with exit code 1.
Expected Behavior
Terraform should just initialize like it did with v1.5.5.
Actual Behavior
It tries to retrieve AWS account details, which it cannot becuase I'm not using an AWS backend.
Steps to Reproduce
export AWS_SECRET_ACCESS_KEY=<your S3 secret key>
export AWS_ACCESS_KEY_ID=<your S3 access key>
terraform init -backend-config=backend.tfvars
Additional Context
Reverting back to terraform v.1.5.5 fixed this issue.
References
No response
The text was updated successfully, but these errors were encountered: