Created
February 26, 2019 19:29
-
-
Save 100daysofdevops/072ef6b661e822f32f0a8fee9a6ad846 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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