Skip to content
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

Add support for regional secret version resource google_secret_manager_regional_secret_version #8199

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: hashicorp/terraform-provider-google#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` (#11699)

[upstream:2a9c7e6ce823646f03bbf4a42b8825c7e6166cf7]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician merged commit 68ec038 into hashicorp:main Sep 17, 2024
4 checks passed
@modular-magician modular-magician deleted the downstream-pr-2a9c7e6ce823646f03bbf4a42b8825c7e6166cf7 branch November 16, 2024 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant