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-0.73.0 doc/_resource_types/route_table.md
awspec-0.72.0 doc/_resource_types/route_table.md
awspec-0.71.0 doc/_resource_types/route_table.md
awspec-0.70.0 doc/_resource_types/route_table.md
awspec-0.69.1 doc/_resource_types/route_table.md
awspec-0.69.0 doc/_resource_types/route_table.md
awspec-0.68.0 doc/_resource_types/route_table.md
awspec-0.67.1 doc/_resource_types/route_table.md
awspec-0.67.0 doc/_resource_types/route_table.md
awspec-0.66.2 doc/_resource_types/route_table.md
awspec-0.66.1 doc/_resource_types/route_table.md
awspec-0.66.0 doc/_resource_types/route_table.md
awspec-0.65.2 doc/_resource_types/route_table.md
awspec-0.65.1 doc/_resource_types/route_table.md
awspec-0.65.0 doc/_resource_types/route_table.md
awspec-0.64.0 doc/_resource_types/route_table.md
awspec-0.63.1 doc/_resource_types/route_table.md
awspec-0.63.0 doc/_resource_types/route_table.md
awspec-0.62.1 doc/_resource_types/route_table.md
awspec-0.62.0 doc/_resource_types/route_table.md