Skip to content

Instantly share code, notes, and snippets.

@alicek106
Last active March 29, 2019 11:30
Show Gist options
  • Save alicek106/df5f4e6bd53c90212298a6afe2cc531a to your computer and use it in GitHub Desktop.
Save alicek106/df5f4e6bd53c90212298a6afe2cc531a to your computer and use it in GitHub Desktop.
root@aws-cli:/# export KEY_NAME=tf-kube
root@aws-cli:/# export AMI_ID=ami-0d87105164496b94b
root@aws-cli:/# export VPC_ID=$(aws cloudformation describe-stacks --region ap-northeast-2 \
--stack-name eks-vpc-stack | \
jq -r '.Stacks[].Outputs[] | select(.OutputKey == "VpcId")' | \
jq -r '.OutputValue')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment