Skip to content

Instantly share code, notes, and snippets.

@Atalanta
Created April 3, 2011 05:12
Show Gist options
  • Save Atalanta/900212 to your computer and use it in GitHub Desktop.
Save Atalanta/900212 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p0 > @vapour.describe_stacks
=> [#<struct Vapour::Stack id="arn:aws:cloudformation:eu-west-1:431569401286:stack/sns1/60912880-5d44-11e0-b290-5017c2ccb886", status="CREATE_COMPLETE", description="MSA System Test", name="sns1", creation_time=2011-04-02 16:15:08 UTC, disable_rollback=false, status_reason="User Initiated", parameters={"KeyPair"=>"test123"}, outputs={"InstanceId"=>"i-2d67bd5b"}>, #<struct Vapour::Stack id="arn:aws:cloudformation:eu-west-1:431569401286:stack/sns2/b4d3d3f0-5d46-11e0-b290-5017c2ccb886", status="CREATE_COMPLETE", description="MSA System Test", name="sns2", creation_time=2011-04-02 16:31:48 UTC, disable_rollback=false, status_reason="User Initiated", parameters={"KeyPair"=>"test123", "Version"=>"17"}, outputs={"InstanceId"=>"i-9fe540e9", "Version"=>"17"}>, #<struct Vapour::Stack id="arn:aws:cloudformation:eu-west-1:431569401286:stack/sns3/b67a4bd0-5da5-11e0-9095-5081b384b686", status="CREATE_COMPLETE", description="Phase1", name="sns3", creation_time=2011-04-03 03:51:53 UTC, disable_rollback=false, status_reason="User Initiated", parameters={"KeyPair"=>"test123", "Version"=>"15"}, outputs={"InstanceId"=>"i-f777d281", "Version"=>"15"}>, #<struct Vapour::Stack id="arn:aws:cloudformation:eu-west-1:431569401286:stack/sns4/bee99140-5da5-11e0-a436-5017e0f04c86", status="CREATE_COMPLETE", description="Phase2", name="sns4", creation_time=2011-04-03 03:52:07 UTC, disable_rollback=false, status_reason="User Initiated", parameters={"KeyPair"=>"test123", "Version"=>"15"}, outputs={"InstanceId"=>"i-e577d293", "Version"=>"15"}>, #<struct Vapour::Stack id="arn:aws:cloudformation:eu-west-1:431569401286:stack/TestingFirst/7a3aa790-5dab-11e0-91f3-506921498aea", status="ROLLBACK_COMPLETE", description="Phase1", name="TestingFirst", creation_time=2011-04-03 04:33:09 UTC, disable_rollback=false, status_reason="The following resource(s) failed to create: [Ec2Instance]. Rollback requested by user.", parameters={"KeyPair"=>"123", "Version"=>"22"}, outputs={}>]
ruby-1.9.2-p0 > @vapour.describe_stacks.map { |stack| [stack.name, stack.parameters['Version']] }
=> [["sns1", nil], ["sns2", "17"], ["sns3", "15"], ["sns4", "15"], ["TestingFirst", "22"]]
ruby-1.9.2-p0 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment