From 4aee499d7a2afde90c8a87f43a3dc692f66b28af Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Date: Mon, 9 Oct 2023 02:22:28 -0300 Subject: [PATCH] Fixes Security Groups Ports --- instances/instance.tf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/instances/instance.tf b/instances/instance.tf index 423d482..bf6c8c6 100644 --- a/instances/instance.tf +++ b/instances/instance.tf @@ -35,12 +35,13 @@ resource "aws_key_pair" "ssh_key_ci_cd" { locals { rules_in = [ - { "port": 22, "protocol": "tcp" }, - { "port": 80, "protocol": "tcp" }, - { "port": 443, "protocol": "tcp" }, - { "port": 6080, "protocol": "tcp" }, - { "port": 6443, "protocol": "tcp" }, - { "port": 10250, "protocol": "tcp" }, + # { "port": 22, "protocol": "tcp" }, + # { "port": 80, "protocol": "tcp" }, + # { "port": 443, "protocol": "tcp" }, + # { "port": 6080, "protocol": "tcp" }, + # { "port": 6443, "protocol": "tcp" }, + # { "port": 10250, "protocol": "tcp" }, + { "port": 0, "protocol": "-1" }, ] } @@ -55,6 +56,7 @@ resource "aws_security_group" "project_pool" { to_port = ingress.value["port"] protocol = ingress.value["protocol"] cidr_blocks = ["0.0.0.0/0"] + ipv6_cidr_blocks = ["::/0"] } }