Method: Moonshot::Stack#physical_id_for

Defined in:
lib/moonshot/stack.rb

#physical_id_for(logical_id) ⇒ String?

Returns:

  • (String, nil)


131
132
133
134
135
136
# File 'lib/moonshot/stack.rb', line 131

def physical_id_for(logical_id)
  resource_summary = resource_summaries.find do |r|
    r.logical_resource_id == logical_id
  end
  resource_summary&.physical_resource_id
end