-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Initialization s3 Backend no working #6530
Comments
I've experienced the same. I found if I remove the |
Removing the additional |
Thanks @nathanielks well spotted it's true |
@ClaireBellivier it occurred to me yesterday that this is expected behavior! The backend authenticates separately from the provider, so if we don't have environment variables such as |
To add to this, backends cannot contain interpolation, so either the environment variables are present or we have to hardcode the parameters into the backend definition. |
Actually, that's what I discovered :) and yes of course I did. |
If we're good here, it'd be good to close the issue. Their backlog is already quite large 😃 |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Terraform version: v0.11.10
Affected Resource(s)
Initialization s3 backend.
Terraform Configuration Files
variables.tf
provider.tf
backend.tf
S3 policy
s3.tpl
Debug Output
Expected Behavior
Use of the bucket s3 as a backend with the
terraform.tfstate
stored in the s3 bucket.Actual Behavior
Backend cannot be initialized.
Steps to Reproduce
backend.tf
terraform init
terraform apply
backend.tf
terraform init
Important Factoids
Run on a new account.
References
The text was updated successfully, but these errors were encountered: