Skip to content

Instantly share code, notes, and snippets.

@sebsto
Created March 20, 2015 07:53
Show Gist options
  • Save sebsto/468670c7c0d5feeade69 to your computer and use it in GitHub Desktop.
Save sebsto/468670c7c0d5feeade69 to your computer and use it in GitHub Desktop.
AWS CLI : discover your service limits from the command line
aws support describe-trusted-advisor-check-result --check-id eW7HH0l7J9 --query 'result.sort_by(flaggedResources[?status!="ok"],&metadata[2])[].metadata' --output table --region us-east-1
@sebsto
Copy link
Author

sebsto commented Feb 25, 2021

Trusted Advisor requires a subscription to Support Contract, as explained here https://aws.amazon.com/premiumsupport/technology/trusted-advisor/

@sebsto
Copy link
Author

sebsto commented Feb 25, 2021

2021 UPDATE

To find check ID :

aws --region us-east-1 support describe-trusted-advisor-checks --language en --query 'checks[?category==`service_limits`]'

Once you found the checkID (in the below example, I am using "EC2 On-Demand instances - Standard") :

aws support describe-trusted-advisor-check-result --region us-east-1 --check-id 0Xc6LMYG8P --output table --query 'result.sort_by(flaggedResources[?status!="ok"],&metadata[2])[].metadata' 

@harleyGoo
Copy link

@sebsto
Thanks a lot for update!!

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