Skip to content

Instantly share code, notes, and snippets.

@nicusX
Last active August 9, 2016 17:04
Show Gist options
  • Save nicusX/63b857127b7ca8f20780ef6ff66cc961 to your computer and use it in GitHub Desktop.
Save nicusX/63b857127b7ca8f20780ef6ff66cc961 to your computer and use it in GitHub Desktop.
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