Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support of ILAB_AWS_S3_SESSION_TOKEN for EC2 with Instance profile and IAM role #36
When we assigned IAM role to an EC2 instance, the credentials to access the S3 will not only
Those 3 settings are automatically available in the EC2 instance attached to an instance profile with IAM role.
ENDPOINT=http://169.254.169.254/latest/meta-data/iam/security-credentials/; KEYS=$(curl -s $ENDPOINT`curl -s $ENDPOINT`); # Fill in ILAB env vars ILAB_AWS_S3_ACCESS_KEY=$(echo $KEYS | jq ".AccessKeyId"); ILAB_AWS_S3_ACCESS_SECRET=$(echo $KEYS | jq ".SecretAccessKey"); #⚠️⚠️⚠️ the one below is missing ⚠️⚠️⚠️⚠️ ILAB_AWS_S3_SESSION_TOKEN=$(echo $KEYS | jq ".Token"); # << WE REQUEST the support of this one