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