diff --git a/examples/shared_vpc/main.tf b/examples/shared_vpc/main.tf index 5e61522ab..f22a89903 100644 --- a/examples/shared_vpc/main.tf +++ b/examples/shared_vpc/main.tf @@ -186,6 +186,29 @@ module "service-project-c" { grant_network_role = false } +/****************************************** + Fourth Service Project Creation + To test shared_vpc_deletion_policy + *****************************************/ +module "service-project-d" { + source = "terraform-google-modules/project-factory/google//modules/svpc_service_project" + version = "~> 15.0" + + name = "d-${var.service_project_name}" + random_project_id = false + + org_id = var.organization_id + folder_id = var.folder_id + billing_account = var.billing_account + + shared_vpc = module.host-project.project_id + shared_vpc_subnets = module.vpc.subnets_self_links + + svpc_deletion_policy = "ABANDON" + + disable_services_on_destroy = false +} + /****************************************** Example dependency on service-project *****************************************/