From 8518bffaaa5d10cf00025df7287e5a501950f9cf Mon Sep 17 00:00:00 2001 From: Julio Diez Date: Fri, 24 Feb 2023 12:36:12 +0100 Subject: [PATCH] Add another test for VPC-SC in README --- .../serverless/cloud-run-corporate/README.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/blueprints/serverless/cloud-run-corporate/README.md b/blueprints/serverless/cloud-run-corporate/README.md index 59d16f7d..671acc0f 100644 --- a/blueprints/serverless/cloud-run-corporate/README.md +++ b/blueprints/serverless/cloud-run-corporate/README.md @@ -221,6 +221,30 @@ The above command will delete the associated resources so there will be no billa ## Tests +```hcl +module "test" { + source = "./fabric/blueprints/serverless/cloud-run-corporate" + prj_main_create = { + billing_account_id = "ABCDE-12345-ABCDE" + parent = "organizations/0123456789" + } + prj_main_id = "main-project-id" + prj_prj1_create = { + billing_account_id = "ABCDE-12345-ABCDE" + parent = "organizations/0123456789" + } + prj_prj1_id = "project1-id" + access_policy = null + access_policy_create = { + parent = "organizations/0123456789" + title = "vpcsc-cloudrun" + } + tf_identity = "user@example.org" +} + +# tftest modules=15 resources=31 +``` + ```hcl module "test" { source = "./fabric/blueprints/serverless/cloud-run-corporate"