Sha256: 2355a812c19803fd09addf0ce679e520fefd65ba169e31f011d34aaec3e05abf

Contents?: true

Size: 809 Bytes

Versions: 164

Compression:

Stored size: 809 Bytes

Contents

### exist

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

### be_attached_to

```ruby
describe ebs('my-volume') do
  it { should be_attached_to('my-ec2') }
end
```

### be_creating, be_available, be_in_use, be_deleting, be_deleted, be_error

```ruby
describe ebs('my-volume') do
  it { should be_in_use }
end
```

### have_tag

```ruby
describe ebs('my-volume') do
  it { should have_tag('Name').value('my-volume') }
end
```

### advanced

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

```ruby
describe ebs('my-volume') do
  its('attachments.first.instance_id') { should eq 'i-ec12345a' }
end
```

or

```ruby
describe ebs('my-volume') do
  its('resource.attachments.first.instance_id') { should eq 'i-ec12345a' }
end
```

Version data entries

164 entries across 164 versions & 4 rubygems

Version Path
awspec-1.23.0 doc/_resource_types/ebs.md
awspec-1.22.1 doc/_resource_types/ebs.md
awspec-1.22.0 doc/_resource_types/ebs.md
awspec-1.21.1 doc/_resource_types/ebs.md
awspec-1.21.0 doc/_resource_types/ebs.md
awspec-1.20.0 doc/_resource_types/ebs.md
awspec-1.19.2 doc/_resource_types/ebs.md
awspec-1.19.1 doc/_resource_types/ebs.md
awspec-1.19.0 doc/_resource_types/ebs.md
cthiesfork-awspec-1.2.4 doc/_resource_types/ebs.md
awspec-api_gateway_extended-1.2.4 doc/_resource_types/ebs.md
awspec-api_gateway_extended-1.2.3 doc/_resource_types/ebs.md
awspec-1.18.6 doc/_resource_types/ebs.md
cthiesfork-awspec-1.2.2 doc/_resource_types/ebs.md
cthiesfork-awspec-1.2.1 doc/_resource_types/ebs.md
awspec-1.18.5 doc/_resource_types/ebs.md
cthiesfork-awspec-1.2.0 doc/_resource_types/ebs.md
cthiesfork-awspec-1.1.0 doc/_resource_types/ebs.md
cthiesfork-awspec-1.0.0 doc/_resource_types/ebs.md
awspec-1.18.4 doc/_resource_types/ebs.md