1 Answer
- Newest
- Most votes
- Most comments
0
It looks like there might be a misunderstanding in your AWS CLI command when querying for tags and source server IDs from AWS Disaster Recovery Service (DRS). Let's correct and refine your command to get the desired output.
The correct AWS CLI command to retrieve Server Names and Source IDs with tags should be structured like this:
aws drs describe-source-servers --region us-west-2 --query "items[*].{Name:Tags[?Key=='Name']|[0].Value, SourceID:SourceServerID}" --output table
Relevant content
- asked 3 months ago
- asked 3 years ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago