Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions terraform/ssh-access.tf
Original file line number Diff line number Diff line change
@@ -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"]
}
}