Skip to content

Instantly share code, notes, and snippets.

@woods
Created January 14, 2019 22:17
Show Gist options
  • Save woods/dfb7fc717ae5bae518dbe013b5191707 to your computer and use it in GitHub Desktop.
Save woods/dfb7fc717ae5bae518dbe013b5191707 to your computer and use it in GitHub Desktop.
# Allow access to the vault service from the public and private subnets
# Note that this doesn't allow access from the internet; it just allows
# traffic over the private network from hosts that reside in either of our
# two subnets.
resource "aws_security_group_rule" "vault" {
security_group_id = "${aws_security_group.security_group.id}"
type = "ingress"
from_port = 8200
to_port = 8200
protocol = "tcp"
cidr_blocks = [
"${var.public_subnet_cidr_block}",
"${var.private_subnet_cidr_block}",
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment