This paragraph block can be used to explain how to configure any specific workshop requirements if necessary. Example content guidance can be found at the bottom of the page.
This paragraph block can optionally be utilized to lead into the next section of the workshop.
Return to your workspace and click the gear icon (in top right corner), or click to open a new tab and choose “Open Preferences”
Select AWS SETTINGS and turn off AWS managed temporary credentials
Close the Preferences tab
Turn off temp credentials
Copy and run (paste with Ctrl+P or CMD+P) the commands below.
Before running it, review what it does by reading through the comments.
sudo pip install –upgrade awscli && hash -r
sudo yum -y install jq gettext bash-completion moreutils
echo ‘yq() { docker run –rm -i -v “${PWD}”:/workdir mikefarah/yq yq “$@” }’ | tee -a ~/.bashrc && source ~/.bashrc
for command in jq aws do which $command &>/dev/null && echo “$command in path” || echo “$command NOT FOUND” done
rm -vf ${HOME}/.aws/credentials
export AWS_REGION=$(curl -s 169.254.169.254/latest/dynamic/instance-identity/document | jq -r ‘.region’) test -n “$AWS_REGION” && echo AWS_REGION is “$AWS_REGION” || echo AWS_REGION is not set
aws sts get-caller-identity –query Arn | grep CircleCI-Workshop-Admin -q && echo “IAM role valid” || echo “IAM role NOT valid”