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