Last active
August 9, 2016 17:04
-
-
Save nicusX/63b857127b7ca8f20780ef6ff66cc961 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
resource "aws_internet_gateway" "gw" { | |
vpc_id = "${aws_vpc.kubernetes.id}" | |
} | |
resource "aws_route_table" "kubernetes" { | |
vpc_id = "${aws_vpc.kubernetes.id}" | |
route { | |
cidr_block = "0.0.0.0/0" | |
gateway_id = "${aws_internet_gateway.gw.id}" | |
} | |
} | |
resource "aws_route_table_association" "kubernetes" { | |
subnet_id = "${aws_subnet.kubernetes.id}" | |
route_table_id = "${aws_route_table.kubernetes.id}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment