Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@farazrehman

This comment has been minimized.

Copy link

farazrehman commented Sep 22, 2016

Works great! thanks for sharing...

@nikolaiderzhak

This comment has been minimized.

Copy link

nikolaiderzhak commented Nov 21, 2017

Just in case AWS change check ids , here is command to get id.

# region must be us-east-1 as it only when support command works
CHECK_ID=$(aws --region us-east-1 support describe-trusted-advisor-checks --language en --query 'checks[?name==`Service Limits`].{id:id}[0].id' --output text)
echo $CHECK_ID
eW7HH0l7J9
@pgporada

This comment has been minimized.

Copy link

pgporada commented Feb 26, 2018

For everybody that's still looking for this information, AWS makes you pay for premium support to get valid/useful output. Boo 👎.

An error occurred (SubscriptionRequiredException) when calling the DescribeTrustedAdvisorCheckResult operation: AWS Premium Support Subscription is required to use this service.```
@chodesuresh

This comment has been minimized.

Copy link

chodesuresh commented Jan 29, 2019

what is the string to use for all resources instead of flagged resources?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.