cloud-run-api
graphnode-technologies/cloud-run-api/gcp
Create an easy Cloud Run API and keep it warm using Scheduler
Install
README
terraform-gcp-cloud-run-api This Terraform module creates a Cloud Run API in Google Cloud Platform (GCP). Resources Created - Google Cloud Run Service - Google Cloud Scheduler Job (optional) - Google Cloud Run Domain Mapping (optional) - Google IAM Policy (optional) - Google Cloud Run Service IAM Policy How to use Here is an example of how to use this module in your Terraform code: ``hcl module "cloud-run-api" { source = "graphnode-technologies/cloud-run-api/gcp" version = "1.1.1" name = "my-cloud-run-api" image_url = "gcr.io/my-project/my-image:v1" } ` Input Variables | Name | Type | Description | Default Value | |------|------|-------------|--------------| | name | string | The name of the Cloud Run service. | "main" | | namespace | string | The namespace where the Cloud Run service will
Inputs (15)
| Name | Type | Description | Default |
|---|---|---|---|
| image_url | string | required | |
| environment_vars | map | {} | |
| cron_schedule | string | "*/1 * * * 1-5" | |
| requests | object({ memory = string | {
"cpu": "10m",
"memory": "50Mi"
} | |
| service_account_name | string | "" | |
| name | string | "main" | |
| extra_annotations | map | {} | |
| max_replicas | number | 1 | |
| port | number | 3000 | |
| min_replicas | number | 1 | |
| limits | object({ memory = string | {
"cpu": "250m",
"memory": "500Mi"
} | |
| namespace | string | "default" | |
| keep_alive | bool | false | |
| location | string | "us-central1" | |
| domain_name | string | "" |
Outputs (1)
resource_recordsResources (4)
Topics & Tags
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,