Removing ports
declaration from google_cloud_run_v2_service
does not remove the port from the service
#20753
Labels
ports
declaration from google_cloud_run_v2_service
does not remove the port from the service
#20753
Community Note
Terraform Version & Provider Version(s)
Terraform v1.7.5 (same thing happens on latest)
on darwin_arm64
Affected Resource(s)
google_cloud_run_v2_service
Terraform Configuration
Before:
After:
Debug Output
No response
Expected Behavior
No response
Actual Behavior
No response
Steps to reproduce
The removal of the port from the
main
container is not shown in the plan and when applying terraform errors out with:From the debug output, it's clear that the
ports
section is still there:Important Factoids
No response
References
I was following this tutorial: https://cloud.google.com/run/docs/internet-proxy-nginx-sidecar
I am confident that the issue is the same as #17468
I think we can fix this by removing this line https://github.com/GoogleCloudPlatform/magic-modules/blob/37e4abb059553f92e3eb4960ec0a2188a3cef77a/mmv1/products/cloudrunv2/Service.yaml#L524, but I would like somebody to double check my assumptions. Happy to open a PR if that's the solution
The text was updated successfully, but these errors were encountered: