mirror of
https://github.com/inspec/inspec
synced 2024-12-21 02:23:13 +00:00
49 lines
1 KiB
Terraform
49 lines
1 KiB
Terraform
|
#===========================================================================#
|
||
|
# 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}"
|
||
|
}
|