SaltwaterC / serverspec-aws

Serverspec resources for AWS
Other
12 stars 9 forks source link

Add subnets resource #3

Closed temyers closed 8 years ago

temyers commented 8 years ago

Inspired by https://github.com/stelligent/serverspec-aws-resources/, add the ability to reason about the subnets of a VPC.

Example:

RSpec.describe vpc = EC2::VPC.new('vpc-aabbccdd', ec2) do
  describe vpc.subnets do
    it { should be_evenly_spread_across_minimum_az(2) }
  end
end

(edit: code format)

SaltwaterC commented 8 years ago

Hi. Sorry for the delay. Pulled your changes and published the gem: https://rubygems.org/gems/serverspec-aws

temyers commented 8 years ago

Great thanks.