From 30164d65c966a9e94999d74a1bef4ed949798023 Mon Sep 17 00:00:00 2001 From: Rafael Amorim Date: Thu, 12 Jan 2017 00:04:55 -0200 Subject: [PATCH] Remove hard aws credentials restriction AWS Credentials are not always a requirement if you are using ECS as it supports IAM Roles for Tasks. --- mysql-backup-s3/backup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mysql-backup-s3/backup.sh b/mysql-backup-s3/backup.sh index d53844c..0d0c36a 100644 --- a/mysql-backup-s3/backup.sh +++ b/mysql-backup-s3/backup.sh @@ -3,13 +3,11 @@ set -e if [ "${S3_ACCESS_KEY_ID}" == "**None**" ]; then - echo "You need to set the S3_ACCESS_KEY_ID environment variable." - exit 1 + echo "Warning: You did not set the S3_ACCESS_KEY_ID environment variable." fi if [ "${S3_SECRET_ACCESS_KEY}" == "**None**" ]; then - echo "You need to set the S3_SECRET_ACCESS_KEY environment variable." - exit 1 + echo "Warning: You did not set the S3_SECRET_ACCESS_KEY environment variable." fi if [ "${S3_BUCKET}" == "**None**" ]; then