jmanteau

Mon coin de toile - A piece of Web

AWS Services Listing

Posted at — Oct 26, 2019
AWS Services Listing

I needed an exhaustive and easy way to list all AWS Services.

This is what I have done to achieve that.

 # Download latest botocore service defintion
 wget https://github.com/boto/botocore/archive/develop.zip
 # Create headers for output csv
 echo "\"ServiceFullName;ServiceShortName;ServiceAbbrevation\"" > awsservices.csv
 # Unzip inline only the service-2.json files and extract the services name with jq
 unzip -l develop.zip | grep service-2.json | awk '{print $4}' | tr "\n" " " | xargs unzip -cqq develop.zip | jq -c '"\(.metadata.serviceFullName);\(.metadata.serviceAbbreviation);\(.metadata.serviceId)"' | sort | uniq >> awsservices.csv
 # Remove the dl file
 rm develop.zip
 # And show the result
 cat awsservices.csv