Skip to content

Commit e8d5558

Browse files
committed
fixes
1 parent 7f5b895 commit e8d5558

File tree

9 files changed

+24
-4
lines changed

9 files changed

+24
-4
lines changed

2-environments/modules/env_baseline/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
| Name | Description | Type | Default | Required |
55
|------|-------------|------|---------|:--------:|
66
| assured\_workload\_configuration | Assured Workload configuration. See https://cloud.google.com/assured-workloads ."<br> enabled: If the assured workload should be created.<br> location: The location where the workload will be created.<br> display\_name: User-assigned resource display name.<br> compliance\_regime: Supported Compliance Regimes. See https://cloud.google.com/assured-workloads/docs/reference/rest/Shared.Types/ComplianceRegime .<br> resource\_type: The type of resource. One of CONSUMER\_FOLDER, KEYRING, or ENCRYPTION\_KEYS\_PROJECT. | <pre>object({<br> enabled = optional(bool, false)<br> location = optional(string, "us-central1")<br> display_name = optional(string, "FEDRAMP-MODERATE")<br> compliance_regime = optional(string, "FEDRAMP_MODERATE")<br> resource_type = optional(string, "CONSUMER_FOLDER")<br> })</pre> | `{}` | no |
7+
| auto\_create\_network | Control whether the 'default' network will be created in the project. | `bool` | `true` | no |
78
| env | The environment to prepare (ex. development) | `string` | n/a | yes |
89
| environment\_code | A short form of the folder level resources (environment) within the Google Cloud organization (ex. d). | `string` | n/a | yes |
910
| 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> 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_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> secret_budget_amount = optional(number, 1000)<br> secret_alert_spent_percents = optional(list(number), [1.2])<br> secret_alert_pubsub_topic = optional(string, null)<br> secret_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> kms_budget_amount = optional(number, 1000)<br> kms_alert_spent_percents = optional(list(number), [1.2])<br> kms_alert_pubsub_topic = optional(string, null)<br> kms_budget_alert_spend_basis = optional(string, "FORECASTED_SPEND")<br> })</pre> | `{}` | no |

2-environments/modules/env_baseline/kms.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module "env_kms" {
3333
disable_services_on_destroy = false
3434
depends_on = [time_sleep.wait_60_seconds]
3535
activate_apis = ["logging.googleapis.com", "cloudkms.googleapis.com", "billingbudgets.googleapis.com"]
36-
auto_create_network = "true"
36+
auto_create_network = var.auto_create_network
3737

3838
labels = {
3939
environment = var.env

2-environments/modules/env_baseline/secrets.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module "env_secrets" {
3333
disable_services_on_destroy = false
3434
depends_on = [time_sleep.wait_60_seconds]
3535
activate_apis = ["logging.googleapis.com", "secretmanager.googleapis.com"]
36-
auto_create_network = "true"
36+
auto_create_network = var.auto_create_network
3737

3838
labels = {
3939
environment = var.env

2-environments/modules/env_baseline/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,9 @@ variable "assured_workload_configuration" {
8181
})
8282
default = {}
8383
}
84+
85+
variable "auto_create_network" {
86+
description = "Control whether the 'default' network will be created in the project."
87+
type = bool
88+
default = true
89+
}

4-projects/modules/single_project/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| activate\_apis | The api to activate for the GCP project | `list(string)` | `[]` | no |
77
| app\_infra\_pipeline\_service\_accounts | The Service Accounts from App Infra Pipeline. | `map(string)` | `{}` | no |
88
| application\_name | The name of application where GCP resources relate | `string` | n/a | yes |
9+
| auto\_create\_network | Control whether the 'default' network will be created in the project. | `bool` | `true` | no |
910
| billing\_account | The ID of the billing account to associated this project with | `string` | n/a | yes |
1011
| billing\_code | The code that's used to provide chargeback information | `string` | n/a | yes |
1112
| business\_code | The code that describes which business unit owns the project | `string` | `"shared"` | no |

4-projects/modules/single_project/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module "project" {
5555
org_id = var.org_id
5656
billing_account = var.billing_account
5757
folder_id = var.folder_id
58-
auto_create_network = "true"
58+
auto_create_network = var.auto_create_network
5959

6060
svpc_host_project_id = var.shared_vpc_host_project_id
6161
shared_vpc_subnets = var.shared_vpc_subnets # Optional: To enable subnetting, replace to "module.networking_project.subnetwork_self_link"

4-projects/modules/single_project/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,9 @@ variable "enable_cloudbuild_deploy" {
160160
type = bool
161161
default = false
162162
}
163+
164+
variable "auto_create_network" {
165+
description = "Control whether the 'default' network will be created in the project."
166+
type = bool
167+
default = true
168+
}

test/setup/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module "project" {
5454
org_id = var.org_id
5555
folder_id = var.folder_id
5656
billing_account = var.billing_account
57-
auto_create_network = "true"
57+
auto_create_network = var.auto_create_network
5858

5959
activate_apis = [
6060
"cloudresourcemanager.googleapis.com",

test/setup/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ variable "example_foundations_mode" {
3737
variable "domain_to_allow" {
3838
description = "The test domain_to_allow allow users from in IAM."
3939
}
40+
41+
variable "auto_create_network" {
42+
description = "Control whether the 'default' network will be created in the project."
43+
type = bool
44+
default = true
45+
}

0 commit comments

Comments
 (0)