Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active December 16, 2024 08:24
Show Gist options
  • Select an option

  • Save wilmoore/382025fc9a39f3d8d41160511315cbb2 to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/382025fc9a39f3d8d41160511315cbb2 to your computer and use it in GitHub Desktop.
Software Engineering :: Cloud :: Hosting :: Provider :: AWS :: CLI :: JMESPath

Software Engineering :: Cloud :: Hosting :: Provider :: AWS :: CLI :: JMESPath

⪼ Made with 💜 by Polyglot.

source
locations[?state == 'WA'].name | sort(@) | {WashingtonCities: join(', ', @)}
{
  "locations": [
    {"name": "Seattle", "state": "WA"},
    {"name": "New York", "state": "NY"},
    {"name": "Bellevue", "state": "WA"},
    {"name": "Olympia", "state": "WA"}
  ]
}
{
  "WashingtonCities": "Bellevue, Olympia, Seattle"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment