1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-04 05:02:11 +03:00
This commit is contained in:
David Hill
2017-01-05 16:58:03 -06:00
parent cc37107175
commit 753024a476

View File

@@ -1,15 +1,20 @@
#! /bin/sh
# Get Amazon EC2 security-credentials, access and secret access keys
#
prefix=/usr/local
#first check for local versions, then meta-data versions
if [ -f $HOME/.aws/credentials ]; then
exit 0
fi
#get IAM Role
Role=`$prefix/mariadb/columnstore/bin/MCSInstanceCmds.sh getRole`
#check for iam folder
iam=`curl -s http://169.254.169.254/latest/meta-data/ | grep iam`
if [ -z "$iam" ]; then
exit 1;
fi
Role=`curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/`
if [ -z "$Role" ]; then
exit 1;