Skip to content

Instantly share code, notes, and snippets.

@kkumler
Created April 9, 2024 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkumler/91f23b3e385f21c254db13a590d80176 to your computer and use it in GitHub Desktop.
Save kkumler/91f23b3e385f21c254db13a590d80176 to your computer and use it in GitHub Desktop.
AWS service compatibility for a region
# Given a file with a list of required services, sorted
# This could be created by aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/regions/us-east-1/services --query 'Parameters[].Name' --output yaml | cut -d'/' -f8 | sort > aws-services-us-east-1.txt
# And using GNU coretools (prefixed here with g, as usual with Homeberw on macos)
# Environment variables AWS_PROFILE & REGION exported
gcomm -2 -3 required-services.txt <(aws ssm get-parameters-by-path --path /aws/service/global-infrastructure/regions/$REGION/services --query 'Parameters[].Name' --output yaml | cut -d'/' -f8 | sort)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment