Skip to content

Commit

Permalink
Fix dynamic syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cweibel committed Sep 3, 2024
1 parent c748597 commit 36151dd
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions terraform/stack/asg.tf
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,12 @@ resource "cloudfoundry_asg" "trusted_local_networks" {
for_each = data.terraform_remote_state.iaas.outputs.s3_gateway_endpoint_cidrs
iterator = rule

protocol = "tcp"
description = "Allow access to AWS S3 Gateway"
destination = rule.value
ports = "443"
content {
protocol = "tcp"
description = "Allow access to AWS S3 Gateway"
destination = rule.value
ports = "443"
}
}
}

Expand Down Expand Up @@ -269,10 +271,12 @@ resource "cloudfoundry_asg" "trusted_local_networks_egress" {
for_each = data.terraform_remote_state.iaas.outputs.s3_gateway_endpoint_cidrs
iterator = rule

protocol = "tcp"
description = "Allow access to AWS S3 Gateway"
destination = rule.value
ports = "443"
content {
protocol = "tcp"
description = "Allow access to AWS S3 Gateway"
destination = rule.value
ports = "443"
}
}
}

Expand Down

0 comments on commit 36151dd

Please sign in to comment.