Skip to content

Commit 904fb80

Browse files
committed
add example to test
1 parent 8c67e92 commit 904fb80

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

examples/shared_vpc/main.tf

+23
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,29 @@ module "service-project-c" {
186186
grant_network_role = false
187187
}
188188

189+
/******************************************
190+
Fourth Service Project Creation
191+
To test shared_vpc_deletion_policy
192+
*****************************************/
193+
module "service-project-c" {
194+
source = "terraform-google-modules/project-factory/google//modules/svpc_service_project"
195+
version = "~> 15.0"
196+
197+
name = "d-${var.service_project_name}"
198+
random_project_id = false
199+
200+
org_id = var.organization_id
201+
folder_id = var.folder_id
202+
billing_account = var.billing_account
203+
204+
shared_vpc = module.host-project.project_id
205+
shared_vpc_subnets = module.vpc.subnets_self_links
206+
207+
shared_vpc_deletion_policy = "ABANDON"
208+
209+
disable_services_on_destroy = false
210+
}
211+
189212
/******************************************
190213
Example dependency on service-project
191214
*****************************************/

0 commit comments

Comments
 (0)