aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.56k stars 4.13k forks source link

list-service-quotas gives wrong result #8941

Closed ddemaret-plaid closed 1 month ago

ddemaret-plaid commented 1 month ago

Describe the bug

When doing

aws service-quotas list-service-quotas --service-code cloudfront

You get no quotas. However when you look in the UI there's quotas that can be adjusted.

Expected Behavior

A list of quotas to be returned

Current Behavior

{
    "Quotas": []
}

Reproduction Steps

Execute aws service-quotas list-service-quotas --service-code cloudfront

Possible Solution

No response

Additional Information/Context

No response

CLI version used

aws-cli/2.15.30

Environment details (OS name and version, etc.)

macOS Darwin

adev-code commented 1 month ago

Hi @ddemaret-plaid, thanks for reaching out. list-service-quotas is intended to show account specific applied quotas of a service. This operation has varying levels of support on a service-by-service basis. For CloudFront, the command would be: $ aws service-quotas list-aws-default-service-quotas --service-code cloudfront

If that isn't sufficient for your use case, I can reach out to the CloudFront service team for you. Let me know how you'd like to proceed here.

Thank you.

ddemaret-plaid commented 1 month ago

For context, I'm trying to implement https://github.com/aws-solutions/quota-monitor-for-aws which is how I found out about this. As far as I understand it list-aws-default-service-quotas does not reflect the already increased service quotas of the account so sadly that won't work for us. But it seems like I also can't request any Utilisation metrics for Cloudfront anyways so it seems like there's still a couple features missing.

If you could reach out to the CloudFront team about this that would be great thanks!

adev-code commented 1 month ago

Hi @ddemaret-plaid, thanks for the update. I'd just like to mention that I have submitted a feature request to CloudFront Service Quota Team to give a CLI response that reflects the quotas that have been increased. Please let me know if you have any other questions. Thanks!

Ticket for Internal Use Only: P159623587

ddemaret-plaid commented 1 month ago

Perfect thanks!

github-actions[bot] commented 1 month ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.