diff --git a/terraform/ssh-access.tf b/terraform/ssh-access.tf new file mode 100644 index 0000000..011d3a8 --- /dev/null +++ b/terraform/ssh-access.tf @@ -0,0 +1,21 @@ +# Allow SSH access for debugging +resource "aws_security_group" "ssh_access" { + name = "allow_ssh" + description = "Allow SSH access" + vpc_id = var.vpc_id + + ingress { + description = "SSH from anywhere" + from_port = 22 + to_port = 22 + protocol = "tcp" + cidr_blocks = ["0.0.0.0/0"] + } + + egress { + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_blocks = ["0.0.0.0/0"] + } +}