Skip to content

Instantly share code, notes, and snippets.

View achmat-samsodien's full-sized avatar

Achmat Samsodien achmat-samsodien

  • Cape Town, South Africa
View GitHub Profile
@achmat-samsodien
achmat-samsodien / runner-creds.sh
Created March 24, 2020 05:41
IAM Roles in Gitlab Runner
export AWS_CREDS=$(curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/<iam-role>)
export AWS_SECRET_ACCESS_KEY=$(echo $AWS_CREDS | jq -r ".SecretAccessKey")
export AWS_ACCESS_KEY_ID=$(echo $AWS_CREDS | jq -r ".AccessKeyId")
export AWS_SESSION_TOKEN=$(echo $AWS_CREDS | jq -r ".Token")

Keybase proof

I hereby claim:

  • I am achmat-samsodien on github.
  • I am achmat (https://keybase.io/achmat) on keybase.
  • I have a public key ASBa2GhiaySaDn41u3-Tjxsn7s4qAd1bA1wJHVSguU8ZBQo

To claim this, I am signing this object: