Method: Awspec::Helper::Finder::Ec2#find_launch_template
- Defined in:
- lib/awspec/helper/finder/ec2.rb
#find_launch_template(id) ⇒ Object
202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/awspec/helper/finder/ec2.rb', line 202 def find_launch_template(id) # launch_template_id or launch_template_name begin res = ec2_client.describe_launch_templates({ launch_template_ids: [id] }) rescue res = ec2_client.describe_launch_templates({ launch_template_names: [id] }) end res.launch_templates.single_resource(id) end |