Skip to content

Instantly share code, notes, and snippets.

@cam8001
Last active December 20, 2023 19:41
Show Gist options
  • Save cam8001/426c9d56a86915296c42566e120dc129 to your computer and use it in GitHub Desktop.
Save cam8001/426c9d56a86915296c42566e120dc129 to your computer and use it in GitHub Desktop.
One liner to get list of services keyed to AWS region
#!/bin/bash
curl -s 'https://api.regional-table.region-services.aws.a2z.com/index.json' \
| jq '.prices[] | .attributes | .["aws:region"], .["aws:serviceName"]' \
| sed '$!N;s/\n/,/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment