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.31.0 doc/_resource_types/security_group.md
awspec-1.30.0 doc/_resource_types/security_group.md
awspec-1.29.3 doc/_resource_types/security_group.md
awspec-1.29.2 doc/_resource_types/security_group.md
awspec-1.29.1 doc/_resource_types/security_group.md
awspec-1.29.0 doc/_resource_types/security_group.md
awspec-1.28.2 doc/_resource_types/security_group.md
awspec-1.28.1 doc/_resource_types/security_group.md
awspec-1.28.0 doc/_resource_types/security_group.md
awspec-1.27.1 doc/_resource_types/security_group.md
awspec-1.27.0 doc/_resource_types/security_group.md
awspec-1.26.0 doc/_resource_types/security_group.md
awspec-1.25.2 doc/_resource_types/security_group.md
awspec-1.25.1 doc/_resource_types/security_group.md
awspec-1.25.0 doc/_resource_types/security_group.md
awspec-1.24.4 doc/_resource_types/security_group.md
awspec-1.24.3 doc/_resource_types/security_group.md
awspec-1.24.2 doc/_resource_types/security_group.md
awspec-1.24.1 doc/_resource_types/security_group.md
awspec-1.24.0 doc/_resource_types/security_group.md