Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for regional secret version resource google_secret_manager_regional_secret_version #19504

Conversation

modular-magician
Copy link
Collaborator

Add support for new regional secret version resource google_secret_manager_regional_secret_version.
More info about regional secrets: https://cloud.google.com/secret-manager/docs/regional-secrets-overview

A point to be noted is that while importing the google_secret_manager_regional_secret_version resources having the is_secret_data_base64 field set to true, the secret_data is decoded from the base64-encoded string received from API. It is potentially due to condition in the flattener for payload (which is in place for the sake of is_secret_data_base64 field to work). It seems the import is working fine when the is_secret_data_base64 is not provided or set to false. While doing a terraform import, there is no way to determine if the resource to be imported requires decoding of base64 response.
References: #10129 & GoogleCloudPlatform/magic-modules#8873

Release Note Template for Downstream PRs (will be copied)

`google_secret_manager_regional_secret_version`

Derived from GoogleCloudPlatform/magic-modules#11699

…er_regional_secret_version` (hashicorp#11699)

[upstream:2a9c7e6ce823646f03bbf4a42b8825c7e6166cf7]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit 663fa66 into hashicorp:main Sep 17, 2024
2 checks passed
Copy link

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 issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 18, 2024
@modular-magician modular-magician deleted the downstream-pr-2a9c7e6ce823646f03bbf4a42b8825c7e6166cf7 branch November 17, 2024 02:50
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant