Skip to content

Instantly share code, notes, and snippets.

@100daysofdevops
Created February 26, 2019 19:29
Show Gist options
  • Select an option

  • Save 100daysofdevops/072ef6b661e822f32f0a8fee9a6ad846 to your computer and use it in GitHub Desktop.

Select an option

Save 100daysofdevops/072ef6b661e822f32f0a8fee9a6ad846 to your computer and use it in GitHub Desktop.
# Ingress Security Port 22
resource "aws_security_group_rule" "ssh_inbound_access" {
from_port = 22
protocol = "tcp"
security_group_id = "${aws_security_group.test_sg.id}"
to_port = 22
type = "ingress"
cidr_blocks = ["0.0.0.0/0"]
}
# All OutBound Access
resource "aws_security_group_rule" "all_outbound_access" {
from_port = 0
protocol = "-1"
security_group_id = "${aws_security_group.test_sg.id}"
to_port = 0
type = "egress"
cidr_blocks = ["0.0.0.0/0"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment