Open bchadwic opened 4 days ago
Confirmed documentation issue!
On terraform registry the argument containers
of the template
block code appears as Optional, but after running a terraform apply without setting any container it returns the shared error message
Community Note
Terraform Version & Provider Version(s)
Terraform v6.12.0
Affected Resource(s)
google_cloud_run_v2_service
Terraform Configuration
Debug Output
N/A
Expected Behavior
The documentation for
cloud_run_v2_service
states that thecontainers
block isOptional
.I would expect that I would be able to deploy a
cloud_run_v2_service
without acontainers
block based on the documentation.Actual Behavior
When deploying the code above, I get this error:
Steps to reproduce
terraform apply
Important Factoids
The documentation for the previous
cloud_run_service
resource states thatcontainers
areRequired
, so I'm assuming the mistake is within thecloud_run_v2_service
documentation.I understand that this may not be a bug with
cloud_run_v2_service
resource, but more so just a problem with the documentation. I can create a pr to update the documentation if this is the case.References
No response
b/381438826