inspec/test/aws/default/build/route_table.tf
Clinton Wolfe 532f42df89 Move files to locations for core - inspec AWS PR 219 and other new resources
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-02-08 09:36:20 -05:00

48 lines
1 KiB
HCL

#===========================================================================#
# Route Tables
#===========================================================================#
data "aws_internet_gateway" "default" {
filter {
name = "attachment.vpc-id"
values = ["${data.aws_vpc.default.id}"]
}
}
resource "aws_route_table" "rtb" {
vpc_id = "${data.aws_vpc.default.id}"
route {
cidr_block = "172.32.1.0/24"
gateway_id = "${data.aws_internet_gateway.default.id}"
}
tags {
Name = "InSpec"
}
}
output "routetable_rtb_route_table_id" {
value = "${aws_route_table.rtb.id}"
}
output "routetable_rtb_associations" {
value = "${aws_route_table.rtb.associations}"
}
output "routetable_rtb_propagating_vgws" {
value = "${aws_route_table.rtb.propagating_vgws}"
}
output "routetable_rtb_routes" {
value = "${aws_route_table.rtb.routes}"
}
output "routetable_rtb_tags" {
value = "${aws_route_table.rtb.tags}"
}
output "routetable_rtb_vpc_id" {
value = "${aws_route_table.rtb.vpc_id}"
}