Sha256: e8de2689887dddf471f32916391e4515337c7289a26f43a7136c5482d0b3fe7c

Contents?: true

Size: 1005 Bytes

Versions: 108

Compression:

Stored size: 1005 Bytes

Contents

### exist

```ruby
describe vpc('my-vpc') do
  it { should exist }
end
```

### be_available, be_pending

```ruby
describe vpc('vpc-ab123cde') do
  it { should be_available }
end
```

### have_network_acl

```ruby
describe vpc('vpc-ab123cde') do
  it { should have_network_acl('acl-1abc2d3e') }
  it { should have_network_acl('my-network-acl') }
end
```

### have_route_table

```ruby
describe vpc('vpc-ab123cde') do
  it { should have_route_table('rtb-ab123cde') }
  it { should have_route_table('my-route-table') }
end
```

### have_tag

```ruby
describe vpc('vpc-ab123cde') do
  it { should have_tag('Stack').value('Networking') }
end
```

### advanced

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

```ruby
describe vpc('my-vpc') do
  its('route_tables.first.route_table_id') { should eq 'rtb-a12bcd34' }
end
```

or

```ruby
describe vpc('my-vpc') do
  its('resource.route_tables.first.route_table_id') { should eq 'rtb-a12bcd34' }
end
```

Version data entries

108 entries across 108 versions & 2 rubygems

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