diff --git a/ec2-automate-backup/Resources/cron-primer.sh b/ec2-automate-backup/Resources/cron-primer.sh index 39392f9..267a0d7 100644 --- a/ec2-automate-backup/Resources/cron-primer.sh +++ b/ec2-automate-backup/Resources/cron-primer.sh @@ -1,14 +1,17 @@ -#!/bin/bash -#EC2_HOME required for EC2 API Tools +#!/bin/bash - +# EC2_HOME required for EC2 API Tools export EC2_HOME=/opt/aws/apitools/ec2 -#JAVA_HOME required for EC2 API Tools +# JAVA_HOME required for EC2 API Tools export JAVA_HOME=/usr/lib/jvm/jre -#export PATH=/bin is required for cut, date, grep -#export PATH=/opt/aws/bin/ is required for EC2 API Tools -#typical system path PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin +# export PATH=/bin is required for cut, date, grep +# export PATH=/opt/aws/bin/ is required for EC2 API Tools +# typical system path PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/bin export PATH=/bin:/opt/aws/bin/ export AWS_ACCESS_KEY= export AWS_SECRET_KEY= -#the environment variables below (EC2_PRIVATE_KEY and EC2_CERT) are deprecated as of the release of EC2 API Tools 1.6.0.0 - it is recommended that users upgrade to a version of the EC2 API Tools equal to or greater than 1.6.0.0 and use the environment variables AWS_ACCESS_KEY and AWS_SECRET_KEY instead. -#export EC2_PRIVATE_KEY=/path/to/your/private/key.pem -#export EC2_CERT=/path/to/your/cert.pem +# the environment variables below (EC2_PRIVATE_KEY and EC2_CERT) are deprecated +# as of the release of EC2 API Tools 1.6.0.0 - it is recommended that users +# upgrade to a version of the EC2 API Tools equal to or greater than 1.6.0.0 +# and use the environment variables AWS_ACCESS_KEY and AWS_SECRET_KEY instead. +# export EC2_PRIVATE_KEY=/path/to/your/private/key.pem +# export EC2_CERT=/path/to/your/cert.pem