Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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