diff options
author | Peter Mikus <pmikus@cisco.com> | 2022-03-25 14:15:25 +0100 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2022-03-30 13:25:14 +0000 |
commit | ad8149cc4fc9f5a703f5cffd5557abc0874d4d50 (patch) | |
tree | 3136ab126428772784dac8d822cb72cac5bbd7f2 /fdio.infra.terraform/terraform-aws-vpc/main.tf | |
parent | 1996a8e398190a1930607acf72c6f5ce16091e6d (diff) |
refactor(terraform): 2n_aws_c5n
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I5f68fd84a9ea034c5d8ff175807033aa0b60d5a2
Diffstat (limited to 'fdio.infra.terraform/terraform-aws-vpc/main.tf')
-rw-r--r-- | fdio.infra.terraform/terraform-aws-vpc/main.tf | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fdio.infra.terraform/terraform-aws-vpc/main.tf b/fdio.infra.terraform/terraform-aws-vpc/main.tf index 59ac63663d..fb51a7b385 100644 --- a/fdio.infra.terraform/terraform-aws-vpc/main.tf +++ b/fdio.infra.terraform/terraform-aws-vpc/main.tf @@ -32,6 +32,7 @@ resource "aws_security_group" "security_group" { from_port = lookup(ingress.value, "from_port", null) to_port = lookup(ingress.value, "to_port", null) protocol = lookup(ingress.value, "protocol", null) + self = lookup(ingress.value, "self", null) cidr_blocks = lookup(ingress.value, "cidr_blocks", null) ipv6_cidr_blocks = lookup(ingress.value, "ipv6_cidr_blocks", null) } @@ -39,11 +40,12 @@ resource "aws_security_group" "security_group" { dynamic "egress" { for_each = var.security_group_egress content { - from_port = lookup(ingress.value, "from_port", null) - to_port = lookup(ingress.value, "to_port", null) - protocol = lookup(ingress.value, "protocol", null) - cidr_blocks = lookup(ingress.value, "cidr_blocks", null) - ipv6_cidr_blocks = lookup(ingress.value, "ipv6_cidr_blocks", null) + from_port = lookup(egress.value, "from_port", null) + to_port = lookup(egress.value, "to_port", null) + protocol = lookup(egress.value, "protocol", null) + self = lookup(egress.value, "self", null) + cidr_blocks = lookup(egress.value, "cidr_blocks", null) + ipv6_cidr_blocks = lookup(egress.value, "ipv6_cidr_blocks", null) } } } |