Skip to content

Instantly share code, notes, and snippets.

@mattray
Created May 7, 2018 21:43
Show Gist options
  • Save mattray/c4d6eda82dfb25502ef381cc631a1edd to your computer and use it in GitHub Desktop.
Save mattray/c4d6eda82dfb25502ef381cc631a1edd to your computer and use it in GitHub Desktop.
$ bundle exec bin/iggy cfn generate -t test/bjc-demo-aws-4.5.4.json
# encoding: utf-8
#
title '/Users/mray/ws/iggy/test/bjc-demo-aws-4.5.4.json controls generated by Iggy v0.1.0'
control 'aws_vpc::VPC' do
title 'Iggy bjc-demo-aws-4.5.4.json aws_vpc::VPC'
desc 'aws_vpc::VPC from the source file /Users/mray/ws/iggy/test/bjc-demo-aws-4.5.4.json
Generated by Iggy v0.1.0'
impact 1.0
describe aws_vpc('VPC') do
it { should exist }
its('cidr_block') { should cmp '172.31.0.0/16' }
end
end
control 'aws_subnet::SubnetAutomate' do
title 'Iggy bjc-demo-aws-4.5.4.json aws_subnet::SubnetAutomate'
desc 'aws_subnet::SubnetAutomate from the source file /Users/mray/ws/iggy/test/bjc-demo-aws-4.5.4.json
Generated by Iggy v0.1.0'
impact 1.0
describe aws_subnet('SubnetAutomate') do
it { should exist }
its('cidr_block') { should cmp '172.31.54.0/24' }
end
end
control 'aws_subnet::SubnetProd' do
title 'Iggy bjc-demo-aws-4.5.4.json aws_subnet::SubnetProd'
desc 'aws_subnet::SubnetProd from the source file /Users/mray/ws/iggy/test/bjc-demo-aws-4.5.4.json
Generated by Iggy v0.1.0'
impact 1.0
describe aws_subnet('SubnetProd') do
it { should exist }
its('cidr_block') { should cmp '172.31.62.0/24' }
end
end
control 'aws_subnet::SubnetWorkstations' do
title 'Iggy bjc-demo-aws-4.5.4.json aws_subnet::SubnetWorkstations'
desc 'aws_subnet::SubnetWorkstations from the source file /Users/mray/ws/iggy/test/bjc-demo-aws-4.5.4.json
Generated by Iggy v0.1.0'
impact 1.0
describe aws_subnet('SubnetWorkstations') do
it { should exist }
its('cidr_block') { should cmp '172.31.10.0/24' }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment