Skip to content

Commit e6d5895

Browse files
authored
Update resource_cloud_run_v2_service_test.go.tmpl
1 parent 057a641 commit e6d5895

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

mmv1/third_party/terraform/services/cloudrunv2/resource_cloud_run_v2_service_test.go.tmpl

+28
Original file line numberDiff line numberDiff line change
@@ -1383,3 +1383,31 @@ resource "google_cloud_run_v2_service" "default" {
13831383
`, context)
13841384
}
13851385
{{- end }}
1386+
1387+
func testAccCloudRunV2Service_withInvokerIamDisabled(context map[string]interface{}) string {
1388+
return acctest.Nprintf(`
1389+
resource "google_cloud_run_v2_service" "default" {
1390+
name = "tf-test-cloudrun-service%{random_suffix}"
1391+
description = "publicly available service with no IAM check"
1392+
location = "us-central1"
1393+
deletion_protection = false
1394+
annotations = {
1395+
generated-by = "magic-modules"
1396+
}
1397+
ingress = "INGRESS_TRAFFIC_ALL"
1398+
labels = {
1399+
label-1 = "value-1"
1400+
}
1401+
client = "client-1"
1402+
client_version = "client-version-1"
1403+
invoker_iam_disabled = true
1404+
template {
1405+
containers {
1406+
name = "container-1"
1407+
image = "us-docker.pkg.dev/cloudrun/container/hello"
1408+
}
1409+
}
1410+
}
1411+
1412+
`, context)
1413+
}

0 commit comments

Comments
 (0)