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.12.5 doc/_resource_types/security_group.md
awspec-1.12.4 doc/_resource_types/security_group.md
awspec-1.12.3 doc/_resource_types/security_group.md
awspec-1.12.2 doc/_resource_types/security_group.md
awspec-1.12.1 doc/_resource_types/security_group.md
awspec-1.12.0 doc/_resource_types/security_group.md
awspec-1.11.1 doc/_resource_types/security_group.md
awspec-1.11.0 doc/_resource_types/security_group.md
awspec-1.10.0 doc/_resource_types/security_group.md
awspec-1.9.0 doc/_resource_types/security_group.md
awspec-1.8.0 doc/_resource_types/security_group.md
awspec-1.7.0 doc/_resource_types/security_group.md
awspec-1.6.1 doc/_resource_types/security_group.md
awspec-1.6.0 doc/_resource_types/security_group.md
awspec-1.5.4 doc/_resource_types/security_group.md
awspec-1.5.3 doc/_resource_types/security_group.md
awspec-1.5.2 doc/_resource_types/security_group.md
awspec-1.5.1 doc/_resource_types/security_group.md
awspec-1.5.0 doc/_resource_types/security_group.md
awspec-1.4.3 doc/_resource_types/security_group.md