Skip to content

data-platform-minimal - support web_server_network_access_control #1474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,15 @@ resource "google_composer_environment" "processing-cmp-0" {
kms_key_name = var.service_encryption_keys.composer
}
}
web_server_network_access_control {
dynamic "allowed_ip_range" {
for_each = var.composer_config.web_server_network_access_ip_ranges
content {
value = allowed_ip_range.value["value"]
description = allowed_ip_range.value["description"]
}
}
}
}
depends_on = [
module.processing-project
Expand Down
11 changes: 10 additions & 1 deletion blueprints/data-solutions/data-platform-minimal/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ variable "composer_config" {
env_variables = optional(map(string), {})
image_version = optional(string, "composer-2-airflow-2")
}), {})
web_server_network_access_ip_ranges = optional(list(map(string)), [
{
description = "Allows access from all IPv4 addresses (default value)"
value = "0.0.0.0/0"
},
{
description = "Allows access from all IPv6 addresses (default value)"
value = "::0/0"
}
])
workloads_config = optional(object({
scheduler = optional(object({
cpu = optional(number, 0.5)
Expand Down Expand Up @@ -106,7 +116,6 @@ variable "network_config" {
pods_range_name = optional(string, "pods")
services_range_name = optional(string, "services")
}), {})
# web_server_network_access_control = list(string)
})
nullable = false
default = {}
Expand Down