Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REGION=us-east-1
- STACK_NAME="PX-STACK"
- aws --region ${REGION} ec2 describe-instances --filters "Name=tag:aws:cloudformation:stack-name,Values=${STACK_NAME}" --query 'Reservations[*].Instances[*].{IP:PublicIpAddress,ID:InstanceId}' --output text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement