Commit 0fbaeed 1 parent 7414025 commit 0fbaeed Copy full SHA for 0fbaeed
File tree 9 files changed +25
-5
lines changed
9 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ module "project-factory" {
71
71
default_network_tier = var. default_network_tier
72
72
tag_binding_values = var. tag_binding_values
73
73
cloud_armor_tier = var. cloud_armor_tier
74
+ deletion_policy = var. deletion_policy
74
75
}
75
76
76
77
/* *****************************************
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ resource "google_project" "main" {
77
77
folder_id = local. project_folder_id
78
78
billing_account = var. billing_account
79
79
auto_create_network = var. auto_create_network
80
+ deletion_policy = var. deletion_policy
80
81
81
82
labels = var. labels
82
83
Original file line number Diff line number Diff line change @@ -276,3 +276,9 @@ variable "cloud_armor_tier" {
276
276
type = string
277
277
default = null
278
278
}
279
+
280
+ variable "deletion_policy" {
281
+ description = " The deletion policy for the project."
282
+ type = string
283
+ default = null
284
+ }
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ terraform {
20
20
required_providers {
21
21
google = {
22
22
source = " hashicorp/google"
23
- version = " >= 5.33 , < 6"
23
+ version = " >= 5.41 , < 6"
24
24
}
25
25
google-beta = {
26
26
source = " hashicorp/google-beta"
27
- version = " >= 5.33 , < 6"
27
+ version = " >= 5.41 , < 6"
28
28
}
29
29
null = {
30
30
source = " hashicorp/null"
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ module "project_myproject" {
38
38
| auto\_ create\_ network | Whether to create the default network for the project | ` bool ` | ` false ` | no |
39
39
| billing\_ account | Billing account id. | ` string ` | ` "" ` | no |
40
40
| custom\_ roles | Map of role name => comma-delimited list of permissions to create in this project. | ` map(string) ` | ` {} ` | no |
41
+ | deletion\_ policy | The deletion policy for the project. | ` string ` | ` null ` | no |
41
42
| editors | Optional list of IAM-format members to set as project editor. | ` list(string) ` | ` [] ` | no |
42
43
| extra\_ bindings\_ members | List of comma-delimited IAM-format members for additional IAM bindings, one item per role. | ` list(string) ` | ` [] ` | no |
43
44
| extra\_ bindings\_ roles | List of roles for additional IAM bindings, pair with members list below. | ` list(string) ` | ` [] ` | no |
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ resource "google_project" "project" {
35
35
billing_account = var. billing_account
36
36
auto_create_network = var. auto_create_network
37
37
labels = var. labels
38
+ deletion_policy = var. deletion_policy
38
39
}
39
40
40
41
resource "google_project_service" "project_services" {
Original file line number Diff line number Diff line change @@ -122,3 +122,8 @@ variable "labels" {
122
122
default = {}
123
123
}
124
124
125
+ variable "deletion_policy" {
126
+ description = " The deletion policy for the project."
127
+ type = string
128
+ default = null
129
+ }
Original file line number Diff line number Diff line change @@ -360,9 +360,14 @@ variable "tag_binding_values" {
360
360
default = []
361
361
}
362
362
363
-
364
363
variable "cloud_armor_tier" {
365
364
description = " Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO"
366
365
type = string
367
366
default = null
368
367
}
368
+
369
+ variable "deletion_policy" {
370
+ description = " The deletion policy for the project."
371
+ type = string
372
+ default = null
373
+ }
Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ terraform {
19
19
required_providers {
20
20
google = {
21
21
source = " hashicorp/google"
22
- version = " >= 5.33 , < 6"
22
+ version = " >= 5.41 , < 6"
23
23
}
24
24
google-beta = {
25
25
source = " hashicorp/google-beta"
26
- version = " >= 5.33 , < 6"
26
+ version = " >= 5.41 , < 6"
27
27
}
28
28
}
29
29
provider_meta "google" {
You can’t perform that action at this time.
0 commit comments