Skip to content

Commit 2311350

Browse files
rafaeltelloBBBmau
authored andcommitted
Adds support for cloudrunv2 Service.invokerIamDisabled (GoogleCloudPlatform#11954)
1 parent 30bcf32 commit 2311350

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

mmv1/products/cloudrunv2/Service.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,14 @@ examples:
160160
ignore_read_extra:
161161
- 'deletion_protection'
162162
external_providers: ["time"]
163+
- name: 'cloudrunv2_service_invokeriam'
164+
primary_resource_id: 'default'
165+
primary_resource_name: 'fmt.Sprintf("tf-test-cloudrun-srv%s", context["random_suffix"])'
166+
min_version: 'beta'
167+
vars:
168+
cloud_run_service_name: 'cloudrun-service'
169+
ignore_read_extra:
170+
- 'deletion_protection'
163171
virtual_fields:
164172
- name: 'deletion_protection'
165173
description: |
@@ -950,6 +958,10 @@ properties:
950958
type: String
951959
description: |
952960
Indicates a string to be part of the URI to exclusively reference this target.
961+
- name: 'invokerIamDisabled'
962+
type: Boolean
963+
description: |
964+
Disables IAM permission check for run.routes.invoke for callers of this service. This feature is available by invitation only. For more information, visit https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
953965
- name: 'observedGeneration'
954966
type: String
955967
description: |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
resource "google_cloud_run_v2_service" "{{$.PrimaryResourceId}}" {
2+
provider = google-beta
3+
name = "{{index $.Vars "cloud_run_service_name"}}"
4+
location = "us-central1"
5+
deletion_protection = false
6+
invoker_iam_disabled = true
7+
description = "The serving URL of this service will not perform any IAM check when invoked"
8+
ingress = "INGRESS_TRAFFIC_ALL"
9+
10+
template {
11+
containers {
12+
image = "us-docker.pkg.dev/cloudrun/container/hello"
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)