Skip to content

Cloud Run: default values for location (region) and namespace #4334

@mikhailshilkov

Description

@mikhailshilkov

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)

  • google_cloud_run_service

Potential Terraform Configuration

resource "google_cloud_run_service" "default" {
  name     = "tftest-cloudrun"
  provider = "google-beta"

  spec {
    containers {
      image = "gcr.io/cloudrun/hello"
    }
  }
}

References

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions