-
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
backend/s3: Adds nested attribute for assume_role
#33630
Conversation
…ted to assume role
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
$ TF_ACC=1 go test -count=1 ./internal/backend/remote-state/s3/...
ok github.com/hashicorp/terraform/internal/backend/remote-state/s3 171.348s
This is a breaking change. IMHO this does not provide enough benefits to be worth a breaking change. Why is this important? |
Hi @Nuru. The top-level parameters are being deprecated, not removed, so they will still work. That isn't my understanding of a breaking change. Could you explain your perspective more, please? The benefit in this case is to have configuration parity with the AWS Provider |
@gdavison "deprecated" is the step before "removed". Usually "deprecated" means "will be removed in the next major release". Additionally, people complain about deprecation warnings and want the underlying cause fixed. It ends up being a lot of work, especially on something as widely used as the S3 backend. If you were adding a new capability or removing something that does not work anymore, that would be a good reason for such a change. Changing things to look more like the AWS provider, especially when you are not providing full feature parity, does not seem worth the disruption to me. |
Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Adds a nested attribute
assume_role
for all arguments related to assuming an IAM role. Deprecates arguments related to assuming role at top level.Related #30443
Closes #30495
Target Release
1.6.0
Draft CHANGELOG entry
ENHANCEMENTS
assume_role
role_arn
,session_name
,external_id
,assume_role_duration_seconds
,assume_role_policy
,assume_role_policy_arns
,assume_role_tags
, andassume_role_transitive_tag_keys