mirror of
https://github.com/inspec/inspec
synced 2024-12-23 19:43:14 +00:00
d356cfc6dc
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
48 lines
1 KiB
HCL
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}"
|
|
}
|