diff --git a/modules/project/README.md b/modules/project/README.md index 1f2639b0..44509064 100644 --- a/modules/project/README.md +++ b/modules/project/README.md @@ -200,7 +200,6 @@ module "project" { | *policy_list* | Map of list org policies, status is true for allow, false for deny, null for restore. Values can only be used for allow or deny. | map(object({...})) | | {} | | *prefix* | Prefix used to generate project id and name. | string | | null | | *project_create* | Create project. When set to false, uses a data source to reference existing project. | bool | | true | -| *project_skip_delete* | Allows the underlying resources to be destroyed without destroying the project itself. | bool | | false | | *service_config* | Configure service API activation. | object({...}) | | ... | | *service_encryption_key_ids* | Cloud KMS encryption key in {SERVICE => [KEY_URL]} format. | map(list(string)) | | {} | | *service_perimeter_bridges* | Name of VPC-SC Bridge perimeters to add project into. Specify the name in the form of 'accessPolicies/ACCESS_POLICY_NAME/servicePerimeters/PERIMETER_NAME'. | list(string) | | null | @@ -208,6 +207,7 @@ module "project" { | *services* | Service APIs to enable. | list(string) | | [] | | *shared_vpc_host_config* | Configures this project as a Shared VPC host project (mutually exclusive with shared_vpc_service_project). | object({...}) | | ... | | *shared_vpc_service_config* | Configures this project as a Shared VPC service project (mutually exclusive with shared_vpc_host_config). | object({...}) | | ... | +| *skip_delete* | Allows the underlying resources to be destroyed without destroying the project itself. | bool | | false | ## Outputs diff --git a/modules/project/main.tf b/modules/project/main.tf index 8180e8fa..30deaf7a 100644 --- a/modules/project/main.tf +++ b/modules/project/main.tf @@ -91,7 +91,7 @@ resource "google_project" "project" { billing_account = var.billing_account auto_create_network = var.auto_create_network labels = var.labels - skip_delete = var.project_skip_delete + skip_delete = var.skip_delete } resource "google_project_iam_custom_role" "roles" { diff --git a/modules/project/variables.tf b/modules/project/variables.tf index ab36eacf..0db91975 100644 --- a/modules/project/variables.tf +++ b/modules/project/variables.tf @@ -162,12 +162,6 @@ variable "project_create" { default = true } -variable "project_skip_delete" { - description = "Allows the underlying resources to be destroyed without destroying the project itself." - type = bool - default = false -} - variable "service_config" { description = "Configure service API activation." type = object({ @@ -227,3 +221,9 @@ variable "shared_vpc_service_config" { host_project = "" } } + +variable "skip_delete" { + description = "Allows the underlying resources to be destroyed without destroying the project itself." + type = bool + default = false +}