cloud-run
GoogleCloudPlatform/cloud-run/google
Deploys apps to Cloud Run, along with option to map custom domain
Terraform Cloud Run Module This module handles the basic deployment of containerized applications on Cloud Run, along with domain mapping and IAM policy for the service. The resources/services/activations/deletions that this module will create/trigger are: Creates a Cloud Run service with provided name and container Creates Domain mapping for the deployed service Applies Cloud Run Invoker role to members Mapping custom domains and subdomains You can map multiple custom domains and subdomains to the same Cloud Run service. If you want to register a domain with Cloud Domains, see Registering a domain with Cloud Domains within the Cloud Run console. To add a custom domain or subdomain to your Cloud Run service, you need to add the values to the verified_domain_name variable. Before you've map
| Name | Type | Description | Default |
|---|---|---|---|
| service_name | string | The name of the Cloud Run service to create | required |
| project_id | string | The project ID to deploy to | required |
| image | string | GCR hosted image URL to deploy | required |
| location | string | Cloud Run service deployment location | required |
| requests | map(string) | Resource requests to the container | {} |
| volume_mounts | list(object({ mount_path = | [Beta] Volume Mounts to be attached to the container (when using secret) | [] |
| force_override | bool | Option to force override existing mapping | false |
| generate_revision_name | bool | Option to enable revision name generation | true |
| service_account_email | string | Service Account email needed for the service | "" |
| startup_probe | object({ failure_threshold | Startup probe of application within the container. All other probes are disabled | null |
| service_labels | map(string) | A set of key/value label pairs to assign to the service | {} |
| traffic_split | list(object({ latest_revis | Managing traffic routing to the service | [
{
"latest_revision": true,
" |
| service_annotations | map(string) | Annotations to the service. Acceptable values all, internal, internal-and-cloud- | {
"run.googleapis.com/ingress": "all"
|
| timeout_seconds | number | Timeout for each request | 120 |
| volumes | list(object({ name = strin | [Beta] Volumes needed for environment variables (when using secret) | [] |
| liveness_probe | object({ failure_threshold | Periodic probe of container liveness. Container will be restarted if the probe f | null |
| certificate_mode | string | The mode of the certificate (NONE or AUTOMATIC) | "NONE" |
| template_labels | map(string) | A set of key/value label pairs to assign to the container metadata | {} |
| template_annotations | map(string) | Annotations to the container metadata including VPC Connector and SQL. See [more | {
"autoscaling.knative.dev/maxScale": |
| argument | list(string) | Arguments passed to the ENTRYPOINT command, include these only if image entrypoi | [] |
| env_vars | list(object({ value = stri | Environment variables (cleartext) | [] |
| verified_domain_name | list(string) | List of Custom Domain Name | [] |
| domain_map_labels | map(string) | A set of key/value label pairs to assign to the Domain mapping | {} |
| encryption_key | string | CMEK encryption key self-link expected in the format projects/PROJECT/locations/ | null |
service_name — Name of the created serviceservice_url — The URL on which the deployed service is availableproject_id — Google Cloud project in which the service was createdlocation — Location in which the Cloud Run service was createdservice_status — Status of the created servicedomain_map_status — Status of Domain mappingapphub_service_uri — Service URI in CAIS style to be used by Apphub.revision — Deployed revision for the serviceservice_id — Unique Identifier for the created servicedomain_map_id — Unique Identifier for the created domain mapverified_domain_name — List of Custom Domain NameCreates a global HTTP load balancer for Compute Engine by using forwarding rules
Creates a Cloud SQL database instance
Creates an internal load balancer for Compute Engine by using forwarding rules
Terraform Module to define a consistent naming convention by (namespace, stage,