wavf2 issue #8834
Replies: 1 comment 1 reply
-
|
NoSuchResourceException from
The fix is to discover the correct service/quota codes for the exact Region you are using, then call get-service-quota with those exact values. Step 1: confirm you are querying the same Region as the console aws configure get region Then explicitly set it in the commands below (replace us-east-1 with the Region where you see it in the console). Step 2: find the correct service code in that Region (WAF may show up as aws service-quotas list-services Step 3: list the quota codes for that service code in that Region and locate the one you see in the console aws service-quotas list-service-quotas (If Step 4: once you have the correct quota code for that Region, call get-service-quota aws service-quotas get-service-quota Why the console can “show it” while CLI fails: The console often shows quotas for a selected service/Region, but your CLI call will fail if you ask for a quota code that is not registered under that service code in the Region you’re querying. The Service Quotas API is strict: service code + quota code + Region must match exactly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
so when run the command in my aws cli:
aws service-quotas get-service-quota --service-code wafv2 --quota-code L-2EC3DE7Bit returns me the error:NoSuchResourceException but still i can find it on aws console
note the aws account id and the region is same for cli and the console
Beta Was this translation helpful? Give feedback.
All reactions