You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-04 05:02:11 +03:00
MCOL-462
This commit is contained in:
@@ -1,18 +1,23 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Get Amazon EC2 security-credentials, access and secret access keys
|
# Get Amazon EC2 security-credentials, access and secret access keys
|
||||||
#
|
#
|
||||||
prefix=/usr/local
|
|
||||||
|
|
||||||
#first check for local versions, then meta-data versions
|
#first check for local versions, then meta-data versions
|
||||||
if [ -f $HOME/.aws/credentials ]; then
|
if [ -f $HOME/.aws/credentials ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#get IAM Role
|
#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
|
if [ -z "$Role" ]; then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
aws_access_key_id=`curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/${Role} | grep AccessKeyId | cut -d':' -f2 | sed 's/[^0-9A-Z]*//g'`
|
aws_access_key_id=`curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/${Role} | grep AccessKeyId | cut -d':' -f2 | sed 's/[^0-9A-Z]*//g'`
|
||||||
|
Reference in New Issue
Block a user