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-0.49.0 doc/_resource_types/vpc.md
awspec-0.48.0 doc/_resource_types/vpc.md
awspec-0.47.0 doc/_resource_types/vpc.md
awspec-0.46.0 doc/_resource_types/vpc.md
awspec-0.45.0 doc/_resource_types/vpc.md
awspec-0.44.0 doc/_resource_types/vpc.md
awspec-0.43.0 doc/_resource_types/vpc.md
awspec-0.42.0 doc/_resource_types/vpc.md
awspec-0.41.0 doc/_resource_types/vpc.md
awspec-0.40.0 doc/_resource_types/vpc.md
awspec-0.39.0 doc/_resource_types/vpc.md
awspec-0.38.0 doc/_resource_types/vpc.md
awspec-0.37.8 doc/_resource_types/vpc.md
awspec-0.37.7 doc/_resource_types/vpc.md
awspec-0.37.6 doc/_resource_types/vpc.md
awspec-0.37.5 doc/_resource_types/vpc.md
awspec-0.37.4 doc/_resource_types/vpc.md
awspec-0.37.3 doc/_resource_types/vpc.md
awspec-0.37.2 doc/_resource_types/vpc.md
awspec-0.37.1 doc/_resource_types/vpc.md