Closed theminghuang closed 1 month ago
👋 This is a bit of drive-by input, but I noticed this issue and it's relevant to something I looked at recently.
I think the cause of this might be that the google_secret_manager_secret_iam_policy
resource doesn't support conditions. For example google_compute_instance_iam _*
resources support conditions and the docs include information about conditions there, but the google_secret_manager_secretiam* documentation doesn't mention conditions.
This section of YAML is used to generate the IAM resources for the Secret Manager Secret resource, but it doesn't include the iam_conditions_request_type
property which is needed to enable use of conditions
This is likely an issue with the API not supporting conditions (or rejecting requests that include conditions) rather than an issue with the Terraform resource.
In the google_secret_manager_secret_iam_*
resources, the condition fields were not supported because the iam_conditions_request_type
field was missing in the Secret Manager Secret resource.
This issue has now been resolved and support for this field has been added as a part of this PR. The condition field was introduced as part of release 5.33.0. The details regarding the condition field are available in the documentation.
@abheda-crest thanks for identifying that this has been resolved!
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Should not show diff on plan after applied.
Actual Behavior
Show diff on every plan
Steps to Reproduce
terraform plan
Important Factoids
References
0000
b/306360761