Skip to content

Instantly share code, notes, and snippets.

@alicek106
Last active March 29, 2019 13:17
Show Gist options
  • Save alicek106/a1c1b9efe7d0f2ea8c1b88b272bf5d00 to your computer and use it in GitHub Desktop.
Save alicek106/a1c1b9efe7d0f2ea8c1b88b272bf5d00 to your computer and use it in GitHub Desktop.
root@aws-cli:/# export NODE_INSTANCE_ROLE=$(aws cloudformation describe-stacks --region ap-northeast-2 \
--stack-name eks-worker-group-stack | \
jq -r '.Stacks[].Outputs[] | select(.OutputKey == "NodeInstanceRole")' | \
jq -r '.OutputValue')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment