diff options
author | Peter Mikus <pmikus@cisco.com> | 2022-04-04 16:48:59 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2022-04-05 07:31:01 +0000 |
commit | 6a6ee512cbbcda3295114a478bcb9e3ac3d464c1 (patch) | |
tree | 0df993453eeb26c9957f2084ba6b01ccf33996f2 /fdio.infra.terraform/terraform-aws-vpc | |
parent | 29a928c376a5695a12f58bc0fb400e53b2676e54 (diff) |
fix(terraform): AWS alignments
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: Iba8742a755011515f7a455402b4b283c34fd78b2
Diffstat (limited to 'fdio.infra.terraform/terraform-aws-vpc')
-rw-r--r-- | fdio.infra.terraform/terraform-aws-vpc/main.tf | 8 | ||||
-rw-r--r-- | fdio.infra.terraform/terraform-aws-vpc/variables.tf | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/fdio.infra.terraform/terraform-aws-vpc/main.tf b/fdio.infra.terraform/terraform-aws-vpc/main.tf index fb51a7b385..1b84f8e351 100644 --- a/fdio.infra.terraform/terraform-aws-vpc/main.tf +++ b/fdio.infra.terraform/terraform-aws-vpc/main.tf @@ -26,6 +26,14 @@ resource "aws_security_group" "security_group" { tags = local.tags vpc_id = aws_vpc.vpc.id + ingress { + from_port = 0 + to_port = 0 + protocol = -1 + self = true + ipv6_cidr_blocks = ["::/0"] + } + dynamic "ingress" { for_each = var.security_group_ingress content { diff --git a/fdio.infra.terraform/terraform-aws-vpc/variables.tf b/fdio.infra.terraform/terraform-aws-vpc/variables.tf index 5c7c8dc79a..a501356063 100644 --- a/fdio.infra.terraform/terraform-aws-vpc/variables.tf +++ b/fdio.infra.terraform/terraform-aws-vpc/variables.tf @@ -71,14 +71,6 @@ variable "security_group_ingress" { cidr_blocks = ["0.0.0.0/0"] ipv6_cidr_blocks = ["::/0"] }, - { - from_port = 0 - to_port = 0 - protocol = -1 - self = true - cidr_blocks = ["0.0.0.0/0"] - ipv6_cidr_blocks = ["::/0"] - }, ] } |