mirror of
https://github.com/inspec/inspec
synced 2025-02-17 14:38:43 +00:00
* Initial commit of skeletal resource aws_route_tables * Fixes issues with documentation * Renames route table terraform resources to be more conventional * Removes tags terraform resources * Changes aws_route_table and aws_route_tables integration tests to use new terraform names * Removes unneeded data given in unit tests Signed-off-by: Matthew Dromazos <dromazmj@dukes.jmu.edu>
49 lines
1 KiB
Text
49 lines
1 KiB
Text
---
|
|
title: About the aws_route_tables Resource
|
|
---
|
|
|
|
# aws\_route\_table
|
|
|
|
Use the `aws_route_tables` InSpec audit resource to test properties of all or a group of Route Tables. A Route Table contains a set of rules, called routes, that are used to determine where network traffic is directed.
|
|
|
|
<br>
|
|
|
|
## Syntax
|
|
|
|
# Ensure that there is at least one route table
|
|
describe aws_route_tables do
|
|
it { should exist }
|
|
end
|
|
|
|
## Matchers
|
|
|
|
### exist
|
|
|
|
Indicates that at least one Route Table was found. Use should_not to test that no Route Tables should exist.
|
|
|
|
describe aws_route_tables do
|
|
it { should exist }
|
|
end
|
|
|
|
describe aws_route_tables do
|
|
it { should_not exist }
|
|
end
|
|
|
|
## Properties
|
|
|
|
### vpc\_ids
|
|
|
|
Lists all VPCs that are in the Route Tables.
|
|
|
|
describe aws_route_tables do
|
|
its('vpc_ids') { should include 'vpc_12345678' }
|
|
end
|
|
|
|
|
|
### route\_table\_ids
|
|
|
|
Lists all of the Route Table IDs.
|
|
|
|
describe aws_route_tables do
|
|
its('route_table_ids') { should include 'rtb-12345678' }
|
|
end
|