Sha256: ff709e293e9a74507b03b80b7c7ca5a9a6c287321365c48125c5cf561fb2f509

Contents?: true

Size: 863 Bytes

Versions: 36

Compression:

Stored size: 863 Bytes

Contents

### exist

```ruby
describe security_group('my-security-group-name') do
  it { should exist }
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

36 entries across 36 versions & 1 rubygems

Version Path
awspec-0.50.0 doc/_resource_types/security_group.md
awspec-0.49.0 doc/_resource_types/security_group.md
awspec-0.48.0 doc/_resource_types/security_group.md
awspec-0.47.0 doc/_resource_types/security_group.md
awspec-0.46.0 doc/_resource_types/security_group.md
awspec-0.45.0 doc/_resource_types/security_group.md
awspec-0.44.0 doc/_resource_types/security_group.md
awspec-0.43.0 doc/_resource_types/security_group.md
awspec-0.42.0 doc/_resource_types/security_group.md
awspec-0.41.0 doc/_resource_types/security_group.md
awspec-0.40.0 doc/_resource_types/security_group.md
awspec-0.39.0 doc/_resource_types/security_group.md
awspec-0.38.0 doc/_resource_types/security_group.md
awspec-0.37.8 doc/_resource_types/security_group.md
awspec-0.37.7 doc/_resource_types/security_group.md
awspec-0.37.6 doc/_resource_types/security_group.md
awspec-0.37.5 doc/_resource_types/security_group.md
awspec-0.37.4 doc/_resource_types/security_group.md
awspec-0.37.3 doc/_resource_types/security_group.md
awspec-0.37.2 doc/_resource_types/security_group.md