diff --git a/modules/cloud-run-v2/README.md b/modules/cloud-run-v2/README.md index 3053ae7b16..07e405b107 100644 --- a/modules/cloud-run-v2/README.md +++ b/modules/cloud-run-v2/README.md @@ -7,7 +7,7 @@ Cloud Run Services and Jobs, with support for IAM roles and Eventarc trigger cre - [Mounting secrets as volumes](#mounting-secrets-as-volumes) - [Mounting GCS buckets](#mounting-gcs-buckets) - [Connecting to Cloud SQL database](#connecting-to-cloud-sql-database) -- [Beta features](#beta-features) +- [Direct VPC Egress](#direct-vpc-egress) - [VPC Access Connector](#vpc-access-connector) - [Using Customer-Managed Encryption Key](#using-customer-managed-encryption-key) - [Eventarc triggers](#eventarc-triggers) @@ -109,6 +109,10 @@ module "cloud_run" { gcs = { bucket = var.bucket is_read_only = false + mount_options = [ # Beta feature + "metadata-cache-ttl-secs=120s", + "type-cache-max-size-mb=4", + ] } } } @@ -143,18 +147,13 @@ module "cloud_run" { # tftest fixtures=fixtures/cloudsql-instance.tf inventory=cloudsql.yaml e2e ``` - -## Beta features - -To use beta features like Direct VPC Egress, set the launch stage to a preview stage. - +## Direct VPC Egress ```hcl module "cloud_run" { - source = "./fabric/modules/cloud-run-v2" - project_id = var.project_id - name = "hello" - region = var.region - launch_stage = "BETA" + source = "./fabric/modules/cloud-run-v2" + project_id = var.project_id + name = "hello" + region = var.region containers = { hello = { image = "us-docker.pkg.dev/cloudrun/container/hello" @@ -171,7 +170,7 @@ module "cloud_run" { } deletion_protection = false } -# tftest modules=1 resources=1 inventory=service-beta-features.yaml e2e +# tftest modules=1 resources=1 inventory=service-direct-vpc.yaml e2e ``` ## VPC Access Connector diff --git a/tests/modules/cloud_run_v2/examples/service-beta-features.yaml b/tests/modules/cloud_run_v2/examples/service-direct-vpc.yaml similarity index 100% rename from tests/modules/cloud_run_v2/examples/service-beta-features.yaml rename to tests/modules/cloud_run_v2/examples/service-direct-vpc.yaml