Method: Awspec::Helper::Finder::Ec2#find_launch_template_versions

Defined in:
lib/awspec/helper/finder/ec2.rb

#find_launch_template_versions(id) ⇒ Object



216
217
218
219
220
221
222
223
224
225
# File 'lib/awspec/helper/finder/ec2.rb', line 216

def find_launch_template_versions(id)
  # launch_template_id or launch_template_name
  res = ec2_client.describe_launch_template_versions({
                                                       launch_template_id: id
                                                     })
rescue
  res = ec2_client.describe_launch_template_versions({
                                                       launch_template_name: id
                                                     })
end