-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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 1.6.0 - Backend s3 new assume_role argument example is incorrect #33994
Comments
Ref also #33630 |
I can confirm that this is also happen on apple m1 arm/64 too so don't think it's limited to just windows.... I have the same issue with the same steps to reproduce as above. |
@gdavison A pipeline will most likely use |
Hi @xfournet - thanks for reporting this! I've updated the documentation in #34047 and we'll backport the change to 1.6. To provide more context on why these are attributes instead of blocks: With the Terraform protocol v6, the preferred representation of single objects is as an attribute. The AWS provider continues to support older versions of Terraform, and to do so requires supporting v5 of the Terraform protocol, where single objects are represented as blocks (specifically as a list with a maximum of 1 item). While the discrepancy is not ideal, representing this new backend argument as an attribute follows latest standards and leaves room for us to eventually make a similar change in the AWS provider argument once support for the v5 protocol is no longer a hard requirement. |
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
Affected Pages
https://developer.hashicorp.com/terraform/language/settings/backends/s3
What is the docs issue?
The example
doesn't work:
Proposal
assume_role
is implemented as an argument (it is also described as an argument in the documentation), not a block, so the example must be changed to add an=
afterassume_role
References
See #30495
Note that the choice to use an argument instead a block is not consistent with the aws provider which use a block for assume_role. So it can be really confusing while the objective of #30495 was to avoid discrepancy between the aws provider and the s3 backend.
Even in #30495 description, the intention was to add
assume_role
as a block, not an argument.In the light of theses elements i wonder if the implementation with an argument is volunteer or a mistake ?
The text was updated successfully, but these errors were encountered: