Sha256: daf543e1f4e06dfafd615eae8fe8a81c962ea9edeab22137d4b6f853865632b3

Contents?: true

Size: 1.11 KB

Versions: 107

Compression:

Stored size: 1.11 KB

Contents

### exist

```ruby
describe route_table('my-route-table') do
  it { should exist }
end
```

### have_route

```ruby
describe route_table('my-route-table') do
  it { should have_route('10.0.0.0/16').target(gateway: 'local') }
  it { should have_route('0.0.0.0/0').target(gateway: 'igw-1ab2345c') }
  it { should have_route('192.168.1.0/24').target(instance: 'my-ec2') }
  it { should have_route('192.168.2.0/24').target(vpc_peering_connection: 'my-pcx') }
  it { should have_route('192.168.3.0/24').target(nat: 'nat-7ff7777f') }
end
```

### have_subnet

```ruby
describe route_table('my-route-table') do
  it { should have_subnet('my-subnet') }
end
```

### have_tag

```ruby
describe route_table('my-route-table') do
  it { should have_tag('Name').value('my-route-table') }
end
```

### advanced

`route_table` can use `Aws::EC2::RouteTable` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/RouteTable.html).

```ruby
describe route_table('my-route-table') do
  its('vpc.id') { should eq 'vpc-ab123cde' }
end
```

or

```ruby
describe s3_bucket('my-bucket') do
  its('resource.vpc.id') { should eq 'vpc-ab123cde' }
end
```

Version data entries

107 entries across 107 versions & 2 rubygems

Version Path
awspec-1.0.0 doc/_resource_types/route_table.md
awspec-1.0.0.rc doc/_resource_types/route_table.md
awspec-0.88.2 doc/_resource_types/route_table.md
awspec-0.88.1 doc/_resource_types/route_table.md
awspec-0.88.0 doc/_resource_types/route_table.md
awspec-0.87.1 doc/_resource_types/route_table.md
awspec-0.87.0 doc/_resource_types/route_table.md
awspec-0.86.0 doc/_resource_types/route_table.md
cmonson_2ndwatch_awspec-0.85.4 doc/_resource_types/route_table.md
awspec-0.85.3 doc/_resource_types/route_table.md
cmonson_2ndwatch_awspec-0.85.3 doc/_resource_types/route_table.md
awspec-0.85.2 doc/_resource_types/route_table.md
awspec-0.85.1 doc/_resource_types/route_table.md
awspec-0.85.0 doc/_resource_types/route_table.md
awspec-0.84.1 doc/_resource_types/route_table.md
awspec-0.84.0 doc/_resource_types/route_table.md
awspec-0.83.0 doc/_resource_types/route_table.md
awspec-0.82.3 doc/_resource_types/route_table.md
awspec-0.82.2 doc/_resource_types/route_table.md
awspec-0.82.1 doc/_resource_types/route_table.md