Skip to content

Instantly share code, notes, and snippets.

@andgineer
Created March 16, 2023 14:22
Show Gist options
  • Save andgineer/3b772eb34f06c6d82be18dd93779c1ed to your computer and use it in GitHub Desktop.
Save andgineer/3b772eb34f06c6d82be18dd93779c1ed to your computer and use it in GitHub Desktop.
AWS CLI filter query
aws servicediscovery list-services --filters Name=NAMESPACE_ID,Values=${NS_ID} --query "Services[?Name=='${SERVICE_NAME}'].Id" --output text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment