Sha256: 864383443192c987ae9d54f11cec11513c3ffa75c91dc2fdfe04c86fdc91ed3b

Contents?: true

Size: 870 Bytes

Versions: 17

Compression:

Stored size: 870 Bytes

Contents

#!/bin/bash -exu

# This is another copy the /opt/aws-ec2/auto_terminate.sh script because the
# /opt/aws-ec2/auto_terminate.sh also gets removed when it gets called.  Specifically,
# it gets gets removed when "terminate after_ami" is called.

# There's this extra script that terminates after a timeout because sometimes:
#   1. the script stalls: IE: aws ec2 wait image-available and a custom wait_ami
#      does this.
#   2. the user_data script breaks and stops before finishing, never reaching
#      the terminate_later or terminate_now functions.
#

source /opt/aws-ec2/auto_terminate/functions.sh
# remove itself since at jobs survive reboots and if the ami gets created
# successfully we do not want this to be captured as part of the ami
rm -f /opt/aws-ec2/auto_terminate/after_timeout.sh
terminate now # hard code to now since only gets called via an at job

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
aws-ec2-1.4.9 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.8 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.7 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.6 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.5 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.4 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.3 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.2 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.1 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.4.0 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.3.2 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.3.1 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.3.0 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.2.2 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.2.1 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.2.0 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh
aws-ec2-1.1.0 lib/aws_ec2/scripts/auto_terminate/after_timeout.sh