check snapshotter IAM role
This commit is contained in:
parent
cf11283f95
commit
4c009dd252
1 changed files with 1 additions and 0 deletions
|
@ -5,6 +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; }
|
||||
|
||||
user=$(whoami)
|
||||
|
||||
|
|
Loading…
Reference in a new issue