Skip to content

Instantly share code, notes, and snippets.

@georgebashi
Created July 20, 2015 18:12
Show Gist options
  • Save georgebashi/a79c8448314ebc8fb9c0 to your computer and use it in GitHub Desktop.
Save georgebashi/a79c8448314ebc8fb9c0 to your computer and use it in GitHub Desktop.
resource "aws_security_group" "test" {
name = "test"
description = "test"
vpc_id = "vpc-xxxxxxxx"
}
resource "aws_security_group_rule" "test1" {
type = "ingress"
from_port = 1
to_port = 1
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test2" {
type = "ingress"
from_port = 2
to_port = 2
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test3" {
type = "ingress"
from_port = 3
to_port = 3
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test4" {
type = "ingress"
from_port = 4
to_port = 4
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test5" {
type = "ingress"
from_port = 5
to_port = 5
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test6" {
type = "ingress"
from_port = 6
to_port = 6
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test7" {
type = "ingress"
from_port = 7
to_port = 7
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test8" {
type = "ingress"
from_port = 8
to_port = 8
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test9" {
type = "ingress"
from_port = 9
to_port = 9
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
resource "aws_security_group_rule" "test10" {
type = "ingress"
from_port = 10
to_port = 10
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"]
security_group_id = "${aws_security_group.test.id}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment