Sha256: ffed9c1f8a9f82fb52a01ea733a5333167c7f5128d443ffeb184f12ac17fba3e

Contents?: true

Size: 888 Bytes

Versions: 7

Compression:

Stored size: 888 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_network_acl('acl-1abc2d3e') }
  it { should have_network_acl('my-network-acl') }
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

7 entries across 7 versions & 1 rubygems

Version Path
awspec-0.30.0 doc/_resource_types/vpc.md
awspec-0.29.0 doc/_resource_types/vpc.md
awspec-0.28.1 doc/_resource_types/vpc.md
awspec-0.28.0 doc/_resource_types/vpc.md
awspec-0.27.2 doc/_resource_types/vpc.md
awspec-0.27.1 doc/_resource_types/vpc.md
awspec-0.27.0 doc/_resource_types/vpc.md