diff --git a/modules/cloud-run-v2/README.md b/modules/cloud-run-v2/README.md
index 4501ff24d9..533bbb800b 100644
--- a/modules/cloud-run-v2/README.md
+++ b/modules/cloud-run-v2/README.md
@@ -435,23 +435,24 @@ module "cloud_run" {
| name | description | type | required | default |
|---|---|:---:|:---:|:---:|
-| [name](variables.tf#L153) | Name used for Cloud Run service. | string
| ✓ | |
-| [project_id](variables.tf#L168) | Project id used for all resources. | string
| ✓ | |
-| [region](variables.tf#L173) | Region used for all resources. | string
| ✓ | |
+| [name](variables.tf#L159) | Name used for Cloud Run service. | string
| ✓ | |
+| [project_id](variables.tf#L174) | Project id used for all resources. | string
| ✓ | |
+| [region](variables.tf#L179) | Region used for all resources. | string
| ✓ | |
| [containers](variables.tf#L17) | Containers in name => attributes format. | map(object({…}))
| | {}
|
| [create_job](variables.tf#L77) | Create Cloud Run Job instead of Service. | bool
| | false
|
-| [encryption_key](variables.tf#L83) | The full resource name of the Cloud KMS CryptoKey. | string
| | null
|
-| [eventarc_triggers](variables.tf#L89) | Event arc triggers for different sources. | object({…})
| | {}
|
-| [iam](variables.tf#L107) | IAM bindings for Cloud Run service in {ROLE => [MEMBERS]} format. | map(list(string))
| | {}
|
-| [ingress](variables.tf#L113) | Ingress settings. | string
| | null
|
-| [labels](variables.tf#L130) | Resource labels. | map(string)
| | {}
|
-| [launch_stage](variables.tf#L136) | The launch stage as defined by Google Cloud Platform Launch Stages. | string
| | null
|
-| [prefix](variables.tf#L158) | Optional prefix used for resource names. | string
| | null
|
-| [revision](variables.tf#L178) | Revision template configurations. | object({…})
| | {}
|
-| [service_account](variables.tf#L205) | Service account email. Unused if service account is auto-created. | string
| | null
|
-| [service_account_create](variables.tf#L211) | Auto-create service account. | bool
| | false
|
-| [tag_bindings](variables.tf#L217) | Tag bindings for this service, in key => tag value id format. | map(string)
| | {}
|
-| [volumes](variables.tf#L224) | Named volumes in containers in name => attributes format. | map(object({…}))
| | {}
|
+| [custom_audiences](variables.tf#L83) | Custom audiences for service. | list(string)
| | null
|
+| [encryption_key](variables.tf#L89) | The full resource name of the Cloud KMS CryptoKey. | string
| | null
|
+| [eventarc_triggers](variables.tf#L95) | Event arc triggers for different sources. | object({…})
| | {}
|
+| [iam](variables.tf#L113) | IAM bindings for Cloud Run service in {ROLE => [MEMBERS]} format. | map(list(string))
| | {}
|
+| [ingress](variables.tf#L119) | Ingress settings. | string
| | null
|
+| [labels](variables.tf#L136) | Resource labels. | map(string)
| | {}
|
+| [launch_stage](variables.tf#L142) | The launch stage as defined by Google Cloud Platform Launch Stages. | string
| | null
|
+| [prefix](variables.tf#L164) | Optional prefix used for resource names. | string
| | null
|
+| [revision](variables.tf#L184) | Revision template configurations. | object({…})
| | {}
|
+| [service_account](variables.tf#L211) | Service account email. Unused if service account is auto-created. | string
| | null
|
+| [service_account_create](variables.tf#L217) | Auto-create service account. | bool
| | false
|
+| [tag_bindings](variables.tf#L223) | Tag bindings for this service, in key => tag value id format. | map(string)
| | {}
|
+| [volumes](variables.tf#L230) | Named volumes in containers in name => attributes format. | map(object({…}))
| | {}
|
| [vpc_connector_create](variables-vpcconnector.tf#L17) | Populate this to create a Serverless VPC Access connector. | object({…})
| | null
|
## Outputs
diff --git a/modules/cloud-run-v2/service.tf b/modules/cloud-run-v2/service.tf
index b354a27ddf..a82a6dc83a 100644
--- a/modules/cloud-run-v2/service.tf
+++ b/modules/cloud-run-v2/service.tf
@@ -15,14 +15,15 @@
*/
resource "google_cloud_run_v2_service" "service" {
- count = var.create_job ? 0 : 1
- provider = google-beta
- project = var.project_id
- location = var.region
- name = "${local.prefix}${var.name}"
- ingress = var.ingress
- labels = var.labels
- launch_stage = var.launch_stage
+ count = var.create_job ? 0 : 1
+ provider = google-beta
+ project = var.project_id
+ location = var.region
+ name = "${local.prefix}${var.name}"
+ ingress = var.ingress
+ labels = var.labels
+ launch_stage = var.launch_stage
+ custom_audiences = var.custom_audiences
template {
encryption_key = var.encryption_key
diff --git a/modules/cloud-run-v2/variables.tf b/modules/cloud-run-v2/variables.tf
index ac67a5b734..ddd1bc04dd 100644
--- a/modules/cloud-run-v2/variables.tf
+++ b/modules/cloud-run-v2/variables.tf
@@ -80,6 +80,12 @@ variable "create_job" {
default = false
}
+variable "custom_audiences" {
+ description = "Custom audiences for service."
+ type = list(string)
+ default = null
+}
+
variable "encryption_key" {
description = "The full resource name of the Cloud KMS CryptoKey."
type = string