Sha256: bf9a124980ff7c2b2421ba283ffa4f67d199fcd8c9f848e35c3a1bf8f243eb0a

Contents?: true

Size: 1.37 KB

Versions: 14

Compression:

Stored size: 1.37 KB

Contents

---
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

## AWS Permissions

Your [Principal](https://docs.aws.amazon.com/IAM/latest/UserGuide/intro-structure.html#intro-structure-principal) will need the `ec2:DescribeRouteTables` action with Effect set to Allow.

You can find detailed documentation at [Actions, Resources, and Condition Keys for Amazon EC2](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonec2.html).

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
inspec-2.2.55 docs/resources/aws_route_tables.md.erb
inspec-2.2.54 docs/resources/aws_route_tables.md.erb
inspec-2.2.50 docs/resources/aws_route_tables.md.erb
inspec-2.2.41 docs/resources/aws_route_tables.md.erb
inspec-2.2.35 docs/resources/aws_route_tables.md.erb
inspec-2.2.34 docs/resources/aws_route_tables.md.erb
inspec-2.2.27 docs/resources/aws_route_tables.md.erb
inspec-2.2.20 docs/resources/aws_route_tables.md.erb
inspec-2.2.16 docs/resources/aws_route_tables.md.erb
inspec-2.2.10 docs/resources/aws_route_tables.md.erb
inspec-2.1.84 docs/resources/aws_route_tables.md.erb
inspec-2.1.83 docs/resources/aws_route_tables.md.erb
inspec-2.1.80 docs/resources/aws_route_tables.md.erb
inspec-2.1.78 docs/resources/aws_route_tables.md.erb