Created
January 14, 2019 22:17
-
-
Save woods/dfb7fc717ae5bae518dbe013b5191707 to your computer and use it in GitHub Desktop.
This file contains 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
# 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