-
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
Flatten assume_role
block for OSS backend
#29307
Conversation
UPD: if the design is acceptable I'm happy to add OSS backend tests and cover assume_role logic, currently there are no tests. |
assume_role
block for OSS backend
@jacobm3 up! |
@jbardin it seems that the component maintainer is not available. I've tried all available channels, including Alibaba corporate email and internal Alibaba representatives. What can be next? Any ideas on how to contribute? I'm extremely open to any options. ping @xiaozhu36 |
Thanks @hayorov, I'm not sure if I can get any more info, but maybe some of our contacts can provide some information. In general, if the code maintainers are not responsive, the backend will be marked as unmaintained, but left available for use for the current major release. From a quick look at this PR, I doubt it's going to be acceptable since it would be a breaking change to current configuration. They may be amenable to only adding this alternate form, but I cannot speak for the maintainers here. |
HI. @hayorov I am sorry for late reply and I have added my suggestion and please check them. |
Many thanks @xiaozhu36 , let me check and I'll sort them out ... |
assume_role
block for OSS backend assume_role
block for OSS backend
Dear @xiaozhu36, @jbardin could you please take a look at the update. Implementation
Params digest with the next flow:
ConsiderationsThis PR introduces backward-compatible changes for the OSS backend and introduces flatter assume_role_* options together with the deprecation of the existing assume_role block with nested parameters. |
@xiaozhu36 comments resolved, please re-review |
Hooray, thx @xiaozhu36 @jbardin please let me know if any additional steps are needed from my side |
Dear, HC maintainers @apparentlymart @jbardin ... others, it's been a while since the module maintainer has approved my PR and all checks are passed, could you please shed light on the next steps? |
Sorry @hayorov, I didn't see the last ping. I do intend to review this shortly. We have some time before the minor release feature freeze, so there is no worry about this being dropped. Thanks! |
Thanks @hayorov and @xiaozhu36! |
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. |
Motivation
Current OSS backend implementation has a nested block in the config section called
assume_role
that doesn't allow to use it in data source #29305.This is a suggestion to make the design of the OSS backend (https://www.terraform.io/docs/language/settings/backends/oss.html) more aligned with other existing backends and resolve issues #29305 #23755
Implementation
assume_role
as it implemented in other backends (example s3) asassume_role_X
, X nested paremeterassume_role
since 1.1.0 (next release)assume_role
<>assume_role_X
Params digest with the next flow:
assume_role
blockassuime_role_X
Considerations
This PR introduces backward-compatible changes for the OSS backend and introduces flatter assume_role_* options together with the deprecation of the existing assume_role block with nested parameters.