Stack summaries contain information about CloudFormation stack resources. You can enumerate these from a stack.
stack = cfm.stacks['stack-name'] stack.resource_summaries.each do |summary| puts "#{summary[:physical_resource_id]}: #{summary[:resource_status]}" end
Each summary yielded is a hash with the following keys:
:logical_resource_id
:physical_resource_id
:resource_type
:resource_status
:resource_status_reason
:last_updated_timestamp
@return [Stack]
@param [Stack] stack @param [Hash] options
# File lib/aws/cloud_formation/stack_resource_summary_collection.rb, line 42 def initialize stack, options = {} @stack = stack super end
# File lib/aws/cloud_formation/stack_resource_summary_collection.rb, line 52 def _each_item options = {} next_token = nil begin options = {} options[:next_token] = next_token if next_token options[:stack_name] = stack.name resp = client.list_stack_resources(options) resp.stack_resource_summaries.each do |summary| yield(summary.to_hash) end next_token = resp.data[:next_token] end while next_token end