Sha256: 3ca8e5073e32c0952334e5ebb8ad9bddff4b95d985fbcc9973eadbed94506592

Contents?: true

Size: 992 Bytes

Versions: 165

Compression:

Stored size: 992 Bytes

Contents

### exist

```ruby
describe security_group('my-security-group-name') do
  it { should exist }
end
```

### have_tag

```ruby
describe security_group('my-security-group-name') do
  it { should have_tag('env').value('dev') }
end
```

### its(:inbound), its(:outbound)

```ruby
describe security_group('my-security-group-name') do
  its(:outbound) { should be_opened }
  its(:inbound) { should be_opened(80) }
  its(:inbound) { should be_opened(80).protocol('tcp').for('203.0.113.1/32') }
  its(:inbound) { should be_opened(22).protocol('tcp').for('sg-5a6b7cd8') }
end
```

### advanced

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

```ruby
describe security_group('my-security-group-name') do
  its('group_name') { should eq 'my-security-group-name' }
end
```

or

```ruby
describe security_group('my-security-group-name') do
  its('resource.group_name') { should eq 'my-security-group-name' }
end
```

Version data entries

165 entries across 165 versions & 4 rubygems

Version Path
awspec-1.18.3 doc/_resource_types/security_group.md
awspec-1.18.2 doc/_resource_types/security_group.md
awspec-1.18.1 doc/_resource_types/security_group.md
awspec-1.18.0 doc/_resource_types/security_group.md
awspec-1.17.4 doc/_resource_types/security_group.md
awspec-1.17.3 doc/_resource_types/security_group.md
awspec-1.17.2 doc/_resource_types/security_group.md
awspec-1.17.1 doc/_resource_types/security_group.md
awspec-1.17.0 doc/_resource_types/security_group.md
awspec-1.16.1 doc/_resource_types/security_group.md
awspec-1.16.0 doc/_resource_types/security_group.md
awspec-1.15.3 doc/_resource_types/security_group.md
awspec-1.15.2 doc/_resource_types/security_group.md
awspec-1.15.1 doc/_resource_types/security_group.md
awspec-1.15.0 doc/_resource_types/security_group.md
awspec-1.14.1 doc/_resource_types/security_group.md
awspec-1.14.0 doc/_resource_types/security_group.md
awspec-1.13.0 doc/_resource_types/security_group.md
awspec-1.12.7 doc/_resource_types/security_group.md
awspec-1.12.6 doc/_resource_types/security_group.md