Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.
Description
The current implementation of Cloud Run Service has location and namespace as required parameters. My suggestions:
- As
location is basically a region to deploy to, why not name it region instead to keep it consistent with most other resources?
location (region) should not be required and should use the region assigned to the provider.
namespace should not be required and should use the project assigned to the provider.
New or Affected Resource(s)
Potential Terraform Configuration
resource "google_cloud_run_service" "default" {
name = "tftest-cloudrun"
provider = "google-beta"
spec {
containers {
image = "gcr.io/cloudrun/hello"
}
}
}
References
Community Note
Description
The current implementation of Cloud Run Service has
locationandnamespaceas required parameters. My suggestions:locationis basically a region to deploy to, why not name itregioninstead to keep it consistent with most other resources?location(region) should not be required and should use the region assigned to the provider.namespaceshould not be required and should use the project assigned to the provider.New or Affected Resource(s)
Potential Terraform Configuration
References