mirror of
https://github.com/inspec/inspec
synced 2024-12-01 00:49:24 +00:00
340b6eb4b4
* Update terrform to 0.11.7 (latest) and aws plugin to 1.14; upgrade plugins on test startup * TF route table resource doesn't export associations or routes attributes. Which we weren't using anyway. * Downgrade to aws plugin 1.13 to avoid TF panic; suppress deprecation warning for aws_region * Fix incoherent attribute combination on cloudtrail * Add -auto-approve to suppress interactive confirmation * Update version pinning for AWS minimal account * Use a plan file in AWS runs * Pin azure TF run to 0.11 and 1.3; also an autoformatter pass on the TF code. Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
44 lines
1,022 B
HCL
44 lines
1,022 B
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}"
|
|
}
|
|
}
|
|
|
|
resource "aws_route_table" "rtb2" {
|
|
vpc_id = "${data.aws_vpc.default.id}"
|
|
|
|
route {
|
|
cidr_block = "172.32.1.0/24"
|
|
gateway_id = "${data.aws_internet_gateway.default.id}"
|
|
}
|
|
}
|
|
|
|
output "route_table_1_id" {
|
|
value = "${aws_route_table.rtb.id}"
|
|
}
|
|
|
|
output "route_table_2_id" {
|
|
value = "${aws_route_table.rtb2.id}"
|
|
}
|
|
|
|
output "route_table_1_propagating_vgws" {
|
|
value = "${aws_route_table.rtb.propagating_vgws}"
|
|
}
|
|
|
|
output "route_table_1_vpc_id" {
|
|
value = "${aws_route_table.rtb.vpc_id}"
|
|
}
|