Sha256: 5382f69a1fa997938de8ac3e36f3c7a1d121535de915aa490c7676c266b69b37

Contents?: true

Size: 1.52 KB

Versions: 25

Compression:

Stored size: 1.52 KB

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
```

### be_connected_to_vpc

```ruby
describe vpc('vpc-ab123cde') do
  it { should be_connected_to_vpc('vpc-bcd1235e') }
  it { should be_connected_to_vpc('vpc-bcd1235e').as_accepter }
  it { should_not be_connected_to_vpc('vpc-bcd1235e').as_requester }
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
```

### have_vpc_peering_connection

```ruby
describe vpc('vpc-ab123cde') do
  it { should have_vpc_peering_connection('pcx-c56789de') }
  it { should have_vpc_peering_connection('pcx-c56789de').as_accepter }
  it { should_not have_vpc_peering_connection('pcx-c56789de').as_requester }
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

25 entries across 25 versions & 1 rubygems

Version Path
awspec-1.12.4 doc/_resource_types/vpc.md
awspec-1.12.3 doc/_resource_types/vpc.md
awspec-1.12.2 doc/_resource_types/vpc.md
awspec-1.12.1 doc/_resource_types/vpc.md
awspec-1.12.0 doc/_resource_types/vpc.md
awspec-1.11.1 doc/_resource_types/vpc.md
awspec-1.11.0 doc/_resource_types/vpc.md
awspec-1.10.0 doc/_resource_types/vpc.md
awspec-1.9.0 doc/_resource_types/vpc.md
awspec-1.8.0 doc/_resource_types/vpc.md
awspec-1.7.0 doc/_resource_types/vpc.md
awspec-1.6.1 doc/_resource_types/vpc.md
awspec-1.6.0 doc/_resource_types/vpc.md
awspec-1.5.4 doc/_resource_types/vpc.md
awspec-1.5.3 doc/_resource_types/vpc.md
awspec-1.5.2 doc/_resource_types/vpc.md
awspec-1.5.1 doc/_resource_types/vpc.md
awspec-1.5.0 doc/_resource_types/vpc.md
awspec-1.4.3 doc/_resource_types/vpc.md
awspec-1.4.2 doc/_resource_types/vpc.md