Update snapshot.sh
This commit is contained in:
parent
71ea98abe8
commit
3906fa750b
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
echo "Running $0"
|
||||
|
||||
hash aws 2>/dev/null || { echo >&2 '`aws` command not found. Install it: sudo apt install awscli'; exit 1; }
|
||||
[ "$(curl -q http://169.254.169.254/latest/meta-data/iam/security-credentials)" == "ec2-snapshotter" ] || { echo >&2 'This instance is missing the "ec2-snapshotter" IAM role'; exit 1; }
|
||||
[ "$(curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials)" == "ec2-snapshotter" ] || { echo >&2 'This instance is missing the "ec2-snapshotter" IAM role'; exit 1; }
|
||||
|
||||
user=$(whoami)
|
||||
|
||||
|
|
Loading…
Reference in a new issue