Skip to content

Commit 3be5c83

Browse files
committed
expose variable in main module
1 parent 384f72d commit 3be5c83

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ determining that location is as follows:
132132
| budget\_display\_name | The display name of the budget. If not set defaults to `Budget For <projects[0]|All Projects>` | `string` | `null` | no |
133133
| budget\_labels | A single label and value pair specifying that usage from only this set of labeled resources should be included in the budget. | `map(string)` | `{}` | no |
134134
| budget\_monitoring\_notification\_channels | A list of monitoring notification channels in the form `[projects/{project_id}/notificationChannels/{channel_id}]`. A maximum of 5 channels are allowed. | `list(string)` | `[]` | no |
135+
| cloud\_armor\_tier | Managed protection tier to be set. Possible values are: CA\_STANDARD, CA\_ENTERPRISE\_PAYGO | `string` | `null` | no |
135136
| consumer\_quotas | The quotas configuration you want to override for the project. | <pre>list(object({<br> service = string,<br> metric = string,<br> dimensions = map(string),<br> limit = string,<br> value = string,<br> }))</pre> | `[]` | no |
136137
| create\_project\_sa | Whether the default service account for the project shall be created | `bool` | `true` | no |
137138
| default\_network\_tier | Default Network Service Tier for resources created in this project. If unset, the value will not be modified. See https://cloud.google.com/network-tiers/docs/using-network-service-tiers and https://cloud.google.com/network-tiers. | `string` | `""` | no |

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ module "project-factory" {
7070
vpc_service_control_sleep_duration = var.vpc_service_control_sleep_duration
7171
default_network_tier = var.default_network_tier
7272
tag_binding_values = var.tag_binding_values
73+
cloud_armor_tier = var.cloud_armor_tier
7374
}
7475

7576
/******************************************

modules/core_project_factory/outputs.tf

-5
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,3 @@ output "usage_report_export_bucket" {
105105
description = "GCE usage reports bucket"
106106
value = try(google_project_usage_export_bucket.usage_report_export[0], null)
107107
}
108-
109-
output "cloud_armor_tier" {
110-
description = "Cloud Armor tier for the project"
111-
value = var.cloud_armor_tier
112-
}

variables.tf

+7
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,10 @@ variable "tag_binding_values" {
359359
type = list(string)
360360
default = []
361361
}
362+
363+
364+
variable "cloud_armor_tier" {
365+
description = "Managed protection tier to be set. Possible values are: CA_STANDARD, CA_ENTERPRISE_PAYGO"
366+
type = string
367+
default = null
368+
}

0 commit comments

Comments
 (0)