Skip to content

Commit

Permalink
Remove project.service_config instances using the new default
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc committed Sep 9, 2022
1 parent 67c031c commit f8e2fda
Show file tree
Hide file tree
Showing 25 changed files with 1 addition and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ module "project" {
"cloudfunctions.googleapis.com",
"compute.googleapis.com"
]
service_config = {
disable_on_destroy = false,
disable_dependent_services = false
}
custom_roles = {
(local.role_name) = [
"compute.instances.list",
Expand Down
4 changes: 0 additions & 4 deletions examples/cloud-operations/dns-fine-grained-iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ module "project" {
"dns.googleapis.com",
"servicedirectory.googleapis.com"
]
service_config = {
disable_on_destroy = false,
disable_dependent_services = false
}
}

module "vpc" {
Expand Down
4 changes: 0 additions & 4 deletions examples/cloud-operations/dns-shared-vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ module "project" {
parent = var.folder_id
prefix = var.prefix
services = var.project_services
service_config = {
disable_on_destroy = false,
disable_dependent_services = false
}
}

module "vpc" {
Expand Down
4 changes: 0 additions & 4 deletions examples/cloud-operations/glb_and_armor/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ module "project" {
services = [
"compute.googleapis.com"
]
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
project_create = var.project_create != null
}

Expand Down
4 changes: 0 additions & 4 deletions examples/cloud-operations/packer-image-builder/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ module "project" {
services = [
"compute.googleapis.com"
]
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
}

module "service-account-image-builder" {
Expand Down
4 changes: 0 additions & 4 deletions examples/cloud-operations/quota-monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ module "project" {
"compute.googleapis.com",
"cloudfunctions.googleapis.com"
]
service_config = {
disable_on_destroy = false,
disable_dependent_services = false
}
iam = {
"roles/monitoring.metricWriter" = [module.cf.service_account_iam_email]
}
Expand Down
3 changes: 0 additions & 3 deletions examples/data-solutions/cloudsql-multiregion/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ module "project" {
"storage.googleapis.com",
"storage-component.googleapis.com",
]
service_config = {
disable_on_destroy = false, disable_dependent_services = false
}
}

module "vpc" {
Expand Down
5 changes: 0 additions & 5 deletions examples/data-solutions/data-playground/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ module "project" {
bq = [try(local.service_encryption_keys.bq, null)]
storage = [try(local.service_encryption_keys.storage, null)]
}

service_config = {
disable_on_destroy = false,
disable_dependent_services = false
}
}

###############################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ module "project" {
host_project = local.shared_vpc_project
service_identity_iam = {}
}
service_config = {
disable_on_destroy = false, disable_dependent_services = false
}
}

resource "google_project_iam_member" "shared_vpc" {
Expand Down
5 changes: 1 addition & 4 deletions examples/data-solutions/sqlserver-alwayson/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,4 @@ module "project" {
host_project = var.shared_vpc_project_id
service_identity_iam = {}
}
service_config = {
disable_on_destroy = false, disable_dependent_services = false
}
}
}
4 changes: 0 additions & 4 deletions examples/gke-serverless/multitenant-fleet/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ module "gke-project-0" {
],
var.project_services
)
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
shared_vpc_service_config = {
attach = true
host_project = var.vpc_config.host_project_id
Expand Down
4 changes: 0 additions & 4 deletions examples/networking/hub-and-spoke-peering/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ module "project" {
"compute.googleapis.com",
"container.googleapis.com"
]
service_config = {
disable_on_destroy = false,
disable_dependent_services = false
}
}

################################################################################
Expand Down
4 changes: 0 additions & 4 deletions examples/networking/hub-and-spoke-vpn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ module "project" {
"compute.googleapis.com",
"dns.googleapis.com"
]
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
}
# tftest skip
Expand Down
4 changes: 0 additions & 4 deletions examples/networking/hub-and-spoke-vpn/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ module "project" {
"compute.googleapis.com",
"dns.googleapis.com"
]
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
}

# test VM in landing region 1
Expand Down
4 changes: 0 additions & 4 deletions examples/networking/ilb-next-hop/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ module "project" {
"compute.googleapis.com",
"dns.googleapis.com",
]
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
}

module "service-accounts" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ module "project" {
project_create = var.project_create == null ? false : true
billing_account = try(var.project_create.billing_account_id, null)
parent = try(var.project_create.parent, null)
service_config = {
disable_dependent_services = false
disable_on_destroy = false
}
services = [
"cloudfunctions.googleapis.com",
"cloudbuild.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-nva/landing.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "landing-project" {
name = "prod-net-landing-0"
parent = var.folder_ids.networking-prod
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"compute.googleapis.com",
"dns.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-nva/spoke-dev.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "dev-spoke-project" {
name = "dev-net-spoke-0"
parent = var.folder_ids.networking-dev
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"compute.googleapis.com",
"dns.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-nva/spoke-prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "prod-spoke-project" {
name = "prod-net-spoke-0"
parent = var.folder_ids.networking-prod
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"compute.googleapis.com",
"dns.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-peering/landing.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "landing-project" {
name = "prod-net-landing-0"
parent = var.folder_ids.networking-prod
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"compute.googleapis.com",
"dns.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-peering/spoke-dev.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "dev-spoke-project" {
name = "dev-net-spoke-0"
parent = var.folder_ids.networking-dev
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"container.googleapis.com",
"compute.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-peering/spoke-prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "prod-spoke-project" {
name = "prod-net-spoke-0"
parent = var.folder_ids.networking-prod
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"container.googleapis.com",
"compute.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-vpn/landing.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "landing-project" {
name = "prod-net-landing-0"
parent = var.folder_ids.networking-prod
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"compute.googleapis.com",
"dns.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-vpn/spoke-dev.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "dev-spoke-project" {
name = "dev-net-spoke-0"
parent = var.folder_ids.networking-dev
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"container.googleapis.com",
"compute.googleapis.com",
Expand Down
4 changes: 0 additions & 4 deletions fast/stages/02-networking-vpn/spoke-prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ module "prod-spoke-project" {
name = "prod-net-spoke-0"
parent = var.folder_ids.networking-prod
prefix = var.prefix
service_config = {
disable_on_destroy = false
disable_dependent_services = false
}
services = [
"container.googleapis.com",
"compute.googleapis.com",
Expand Down

0 comments on commit f8e2fda

Please sign in to comment.