mirror of
https://github.com/inspec/inspec
synced 2024-12-19 01:23:50 +00:00
6ee43f8fb5
Signed-off-by: Viktor Yakovlyev <Viktor.Y@D2L.com>
10 lines
346 B
Ruby
10 lines
346 B
Ruby
describe aws_ec2(name: 'Example') do
|
|
it { should exist }
|
|
its('image_id') { should eq 'ami-0d729a60' }
|
|
its('instance_type') { should eq 't2.micro' }
|
|
end
|
|
|
|
#must use a real EC2 instance name, as the SDK will first check to see if its well formed before sending requests
|
|
describe aws_ec2('i-06b4bc106e0d03dfd') do
|
|
it { should_not exist }
|
|
end
|