Sha256: a0ed23570f508cd8122f5fb69c19f5792df36a1319e0fa53e9d2ffc2787d4616

Contents?: true

Size: 1.87 KB

Versions: 57

Compression:

Stored size: 1.87 KB

Contents

### exist

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

### be_available, be_backing_up, be_creating, be_deleting, be_failed, be_inaccessible_encryption_credentials, be_incompatible_credentials, be_incompatible_network, be_incompatible_option_group, be_incompatible_parameters, be_incompatible_restore, be_maintenance, be_modifying, be_rebooting, be_renaming, be_resetting_master_credentials, be_restore_error, be_storage_full, be_upgrading

```ruby
describe rds('my-rds') do
  it { should be_available }
end
```

### have_db_parameter_group

```ruby
describe rds('my-rds') do
  it { should have_db_parameter_group('my-db-parameter-group') }
end
```

### have_option_group

```ruby
describe rds('my-rds') do
  it { should have_option_group('default:mysql-5-6') }
end
```

### have_security_group

```ruby
describe rds('my-rds') do
  it { should have_security_group('sg-5a6b7cd8') }
  it { should have_security_group('my-db-sg') }
end
```

### have_tag

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

### belong_to_db_subnet_group

```ruby
describe rds('my-rds') do
  it { should belong_to_db_subnet_group('my-db-subnet-group') }
end
```

### belong_to_subnet

```ruby
describe rds('my-rds') do
  it { should belong_to_subnet('subnet-8901b123') }
  it { should belong_to_subnet('db-subnet-a') }
end
```

### belong_to_vpc

```ruby
describe rds('my-rds') do
  it { should belong_to_vpc('vpc-ab123cde') }
  it { should belong_to_vpc('my-vpc') }
end
```

### advanced

`rds` can use `Aws::RDS::DBInstance` resource (see http://docs.aws.amazon.com/sdkforruby/api/Aws/RDS/DBInstance.html).

```ruby
describe rds('my-rds') do
  its('db_subnet_group.db_subnet_group_name') { should eq 'my-db-subnet-group' }
end
```

or

```ruby
describe rds('my-rds') do
  its('resource.db_subnet_group.db_subnet_group_name') { should eq 'my-db-subnet-group' }
end
```

Version data entries

57 entries across 57 versions & 2 rubygems

Version Path
awspec-1.4.3 doc/_resource_types/rds.md
awspec-1.4.2 doc/_resource_types/rds.md
awspec-1.4.1 doc/_resource_types/rds.md
awspec-1.4.0 doc/_resource_types/rds.md
awspec-1.3.1 doc/_resource_types/rds.md
awspec-1.3.0 doc/_resource_types/rds.md
awspec-1.2.0 doc/_resource_types/rds.md
awspec-1.1.0 doc/_resource_types/rds.md
awspec-1.0.0 doc/_resource_types/rds.md
awspec-1.0.0.rc doc/_resource_types/rds.md
awspec-0.88.2 doc/_resource_types/rds.md
awspec-0.88.1 doc/_resource_types/rds.md
awspec-0.88.0 doc/_resource_types/rds.md
awspec-0.87.1 doc/_resource_types/rds.md
awspec-0.87.0 doc/_resource_types/rds.md
awspec-0.86.0 doc/_resource_types/rds.md
cmonson_2ndwatch_awspec-0.85.4 doc/_resource_types/rds.md
awspec-0.85.3 doc/_resource_types/rds.md
cmonson_2ndwatch_awspec-0.85.3 doc/_resource_types/rds.md
awspec-0.85.2 doc/_resource_types/rds.md