Created
May 17, 2024 10:10
-
-
Save dazecoop/839a147ab01c0bbb62ba27533c0de365 to your computer and use it in GitHub Desktop.
AWS CLI Get EC2 instance ID from instance name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ec2 describe-instances --filters 'Name=tag:Name,Values=NAME_GOES_HERE' --query 'Reservations[].Instances[].[InstanceId][0][0]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment