Skip to content

Commit

Permalink
add example to test
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Jun 5, 2024
1 parent 8c67e92 commit 098f9ca
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions examples/shared_vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
*****************************************/
Expand Down

0 comments on commit 098f9ca

Please sign in to comment.