#!/bin/bash -eux
/opt/aws-ec2/auto_terminate/setup.sh
<% if @options -%>
<% if @options[:ami_name] %>
/opt/aws-ec2/auto_terminate.sh later
<% else %>
/opt/aws-ec2/auto_terminate.sh now # terminate immediately
<% end -%>
<% end -%>
#!/bin/bash -eux
/opt/aws-ec2/auto_terminate/setup.sh
<% if @options -%>
<% if @options[:ami_name] %>
/opt/aws-ec2/auto_terminate.sh later
<% else %>
/opt/aws-ec2/auto_terminate.sh now # terminate immediately
<% end -%>
<% end -%>