Skip to content

Commit 3e4302d

Browse files
committed
chore: upgrade module version to allow terraform Google provider v6
1 parent ebaf7dd commit 3e4302d

File tree

27 files changed

+64
-13
lines changed

27 files changed

+64
-13
lines changed

0-bootstrap/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ Each step has instructions for this change.
367367
| org\_id | GCP Organization ID | `string` | n/a | yes |
368368
| org\_policy\_admin\_role | Additional Org Policy Admin role for admin group. You can use this for testing purposes. | `bool` | `false` | no |
369369
| parent\_folder | Optional - for an organization with existing projects or for development/validation. It will place all the example foundation resources under the provided folder instead of the root organization. The value is the numeric folder ID. The folder must already exist. | `string` | `""` | no |
370+
| project\_deletion\_policy | The deletion policy for the project created. | `string` | `"PREVENT"` | no |
370371
| project\_prefix | Name prefix to use for projects created. Should be the same in all steps. Max size is 3 characters. | `string` | `"prj"` | no |
371372

372373
## Outputs

0-bootstrap/modules/jenkins-agent/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ module "jenkins_bootstrap" {
6868
| on\_prem\_vpn\_public\_ip\_address | The public IP Address of the Jenkins Controller. | `string` | n/a | yes |
6969
| on\_prem\_vpn\_public\_ip\_address2 | The secondpublic IP Address of the Jenkins Controller. | `string` | n/a | yes |
7070
| org\_id | GCP Organization ID | `string` | n/a | yes |
71+
| project\_deletion\_policy | The deletion policy for the project created. | `string` | `"PREVENT"` | no |
7172
| project\_labels | Labels to apply to the project. | `map(string)` | `{}` | no |
7273
| project\_prefix | Name prefix to use for projects created. | `string` | `"prj"` | no |
7374
| router\_asn | BGP ASN for cloud routes. | `number` | `"64515"` | no |

1-org/envs/shared/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| log\_export\_storage\_retention\_policy | Configuration of the bucket's data retention policy for how long objects in the bucket should be retained. | <pre>object({<br> is_locked = bool<br> retention_period_days = number<br> })</pre> | `null` | no |
1919
| log\_export\_storage\_versioning | (Optional) Toggles bucket versioning, ability to retain a non-current object version when the live object version gets replaced or deleted. | `bool` | `false` | no |
2020
| project\_budget | Budget configuration for projects.<br> budget\_amount: The amount to use as the budget.<br> alert\_spent\_percents: A list of percentages of the budget to alert on when threshold is exceeded.<br> alert\_pubsub\_topic: The name of the Cloud Pub/Sub topic where budget related messages will be published, in the form of `projects/{project_id}/topics/{topic_id}`.<br> alert\_spend\_basis: The type of basis used to determine if spend has passed the threshold. Possible choices are `CURRENT_SPEND` or `FORECASTED_SPEND` (default). | <pre>object({<br> dns_hub_budget_amount = optional(number, 1000)<br> dns_hub_alert_spent_percents = optional(list(number), [1.2])<br> dns_hub_alert_pubsub_topic = optional(string, null)<br> dns_hub_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> base_net_hub_budget_amount = optional(number, 1000)<br> base_net_hub_alert_spent_percents = optional(list(number), [1.2])<br> base_net_hub_alert_pubsub_topic = optional(string, null)<br> base_net_hub_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> base_network_budget_amount = optional(number, 1000)<br> base_network_alert_spent_percents = optional(list(number), [1.2])<br> base_network_alert_pubsub_topic = optional(string, null)<br> base_network_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> restricted_net_hub_budget_amount = optional(number, 1000)<br> restricted_net_hub_alert_spent_percents = optional(list(number), [1.2])<br> restricted_net_hub_alert_pubsub_topic = optional(string, null)<br> restricted_net_hub_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> restricted_network_budget_amount = optional(number, 1000)<br> restricted_network_alert_spent_percents = optional(list(number), [1.2])<br> restricted_network_alert_pubsub_topic = optional(string, null)<br> restricted_network_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> interconnect_budget_amount = optional(number, 1000)<br> interconnect_alert_spent_percents = optional(list(number), [1.2])<br> interconnect_alert_pubsub_topic = optional(string, null)<br> interconnect_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> org_secrets_budget_amount = optional(number, 1000)<br> org_secrets_alert_spent_percents = optional(list(number), [1.2])<br> org_secrets_alert_pubsub_topic = optional(string, null)<br> org_secrets_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> org_billing_export_budget_amount = optional(number, 1000)<br> org_billing_export_alert_spent_percents = optional(list(number), [1.2])<br> org_billing_export_alert_pubsub_topic = optional(string, null)<br> org_billing_export_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> org_audit_logs_budget_amount = optional(number, 1000)<br> org_audit_logs_alert_spent_percents = optional(list(number), [1.2])<br> org_audit_logs_alert_pubsub_topic = optional(string, null)<br> org_audit_logs_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> common_kms_budget_amount = optional(number, 1000)<br> common_kms_alert_spent_percents = optional(list(number), [1.2])<br> common_kms_alert_pubsub_topic = optional(string, null)<br> common_kms_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> scc_notifications_budget_amount = optional(number, 1000)<br> scc_notifications_alert_spent_percents = optional(list(number), [1.2])<br> scc_notifications_alert_pubsub_topic = optional(string, null)<br> scc_notifications_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> })</pre> | `{}` | no |
21+
| project\_deletion\_policy | The deletion policy for the project created. | `string` | `"PREVENT"` | no |
2122
| remote\_state\_bucket | Backend bucket to load Terraform Remote State Data from previous steps. | `string` | n/a | yes |
2223
| scc\_notification\_filter | Filter used to create the Security Command Center Notification, you can see more details on how to create filters in https://cloud.google.com/security-command-center/docs/how-to-api-filter-notifications#create-filter | `string` | `"state = \"ACTIVE\""` | no |
2324
| scc\_notification\_name | Name of the Security Command Center Notification. It must be unique in the organization. Run `gcloud scc notifications describe <scc_notification_name> --organization=org_id` to check if it already exists. | `string` | n/a | yes |

1-org/modules/cai-monitoring/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ resource "google_cloud_asset_organization_feed" "organization_feed" {
121121

122122
module "pubsub_cai_feed" {
123123
source = "terraform-google-modules/pubsub/google"
124-
version = "~> 6.0"
124+
version = "~> 7.0"
125125

126126
topic = "top-cai-monitoring-${random_id.suffix.hex}-event"
127127
project_id = var.project_id

1-org/modules/centralized-logging/main.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ resource "random_string" "suffix" {
8383

8484
module "log_export" {
8585
source = "terraform-google-modules/log-export/google"
86-
version = "~> 8.0"
86+
version = "~> 10.0"
8787

8888
for_each = local.log_exports
8989

@@ -98,7 +98,7 @@ module "log_export" {
9898

9999
module "log_export_billing" {
100100
source = "terraform-google-modules/log-export/google"
101-
version = "~> 8.0"
101+
version = "~> 10.0"
102102

103103
for_each = var.enable_billing_account_sink ? local.destination_resource_name : {}
104104

@@ -123,7 +123,7 @@ resource "time_sleep" "wait_sa_iam_membership" {
123123

124124
module "destination_project" {
125125
source = "terraform-google-modules/log-export/google//modules/project"
126-
version = "~> 8.0"
126+
version = "~> 10.0"
127127
count = var.project_options != null ? 1 : 0
128128

129129
project_id = var.logging_destination_project_id
@@ -151,7 +151,7 @@ resource "google_project_iam_member" "project_sink_member" {
151151

152152
module "internal_project_log_export" {
153153
source = "terraform-google-modules/log-export/google"
154-
version = "~> 8.0"
154+
version = "~> 10.0"
155155
count = var.project_options != null ? 1 : 0
156156

157157
destination_uri = "logging.googleapis.com/projects/${var.logging_destination_project_id}/locations/${var.project_options.location}/buckets/${coalesce(var.project_options.log_bucket_id, "AggregatedLogs")}"
@@ -164,7 +164,7 @@ module "internal_project_log_export" {
164164

165165
module "destination_aggregated_logs" {
166166
source = "terraform-google-modules/log-export/google//modules/logbucket"
167-
version = "~> 8.0"
167+
version = "~> 10.0"
168168
count = var.project_options != null ? 1 : 0
169169

170170
project_id = var.logging_destination_project_id
@@ -238,7 +238,7 @@ resource "google_project_iam_member" "project_sink_member_billing" {
238238
#----------------------#
239239
module "destination_storage" {
240240
source = "terraform-google-modules/log-export/google//modules/storage"
241-
version = "~> 8.0"
241+
version = "~> 10.0"
242242

243243
count = var.storage_options != null ? 1 : 0
244244

@@ -289,7 +289,7 @@ resource "google_storage_bucket_iam_member" "storage_sink_member_billing" {
289289
#----------------------#
290290
module "destination_pubsub" {
291291
source = "terraform-google-modules/log-export/google//modules/pubsub"
292-
version = "~> 8.0"
292+
version = "~> 10.0"
293293

294294
count = var.pubsub_options != null ? 1 : 0
295295

2-environments/envs/development/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
| Name | Description | Type | Default | Required |
55
|------|-------------|------|---------|:--------:|
6+
| project\_deletion\_policy | The deletion policy for the project created. | `string` | `"PREVENT"` | no |
67
| remote\_state\_bucket | Backend bucket to load Terraform Remote State Data from previous steps. | `string` | n/a | yes |
78
| tfc\_org\_name | Name of the TFC organization | `string` | `""` | no |
89

2-environments/envs/development/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ module "env" {
2121
environment_code = "d"
2222
remote_state_bucket = var.remote_state_bucket
2323
tfc_org_name = var.tfc_org_name
24+
25+
project_deletion_policy = var.project_deletion_policy
2426
}

2-environments/envs/development/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ variable "tfc_org_name" {
2424
type = string
2525
default = ""
2626
}
27+
28+
variable "project_deletion_policy" {
29+
description = "The deletion policy for the project created."
30+
type = string
31+
default = "PREVENT"
32+
}

2-environments/envs/nonproduction/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
| Name | Description | Type | Default | Required |
55
|------|-------------|------|---------|:--------:|
6+
| project\_deletion\_policy | The deletion policy for the project created. | `string` | `"PREVENT"` | no |
67
| remote\_state\_bucket | Backend bucket to load Terraform Remote State Data from previous steps. | `string` | n/a | yes |
78
| tfc\_org\_name | Name of the TFC organization | `string` | `""` | no |
89

2-environments/envs/nonproduction/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ module "env" {
2121
environment_code = "n"
2222
remote_state_bucket = var.remote_state_bucket
2323
tfc_org_name = var.tfc_org_name
24+
25+
project_deletion_policy = var.project_deletion_policy
2426
}

0 commit comments

Comments
 (0)