You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/Users/meme/foobar/.venv/lib/python3.9/site-packages/c7n/resources/quotas.py", line 184, in process
res = client.get_metric_statistics(
File "/Users/meme/foobar/.venv/lib/python3.9/site-packages/botocore/client.py", line 508, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/Users/meme/foobar/.venv/lib/python3.9/site-packages/botocore/client.py", line 915, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidParameterCombinationException: An error occurred (InvalidParameterCombination) when calling the GetMetricStatistics operation: You have requested up to 86400 datapoints, which exceeds the limit of 1440. You may reduce the datapoints requested by increasing Period, or decreasing the time range.
when the period is (for example L-6621E65D quota):
### Policy
```shell
---
policies:
- name: service-quota-usage-limit
description: |
find any services that have usage stats of
over 80%
resource: aws.service-quota
filters:
- UsageMetric: present
- type: usage-metric
limit: 99
### Relevant log/traceback output
```shell
File "/Users/meme/foobar/.venv/lib/python3.9/site-packages/c7n/resources/quotas.py", line 184, in process
res = client.get_metric_statistics(
File "/Users/meme/foobar/.venv/lib/python3.9/site-packages/botocore/client.py", line 508, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/Users/meme/foobar/.venv/lib/python3.9/site-packages/botocore/client.py", line 915, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidParameterCombinationException: An error occurred (InvalidParameterCombination) when calling the GetMetricStatistics operation: You have requested up to 86400 datapoints, which exceeds the limit of 1440. You may reduce the datapoints requested by increasing Period, or decreasing the time range.
### Extra information or context
_No response_
The text was updated successfully, but these errors were encountered:
Describe the bug
In here https://github.com/cloud-custodian/cloud-custodian/blob/master/c7n/resources/quotas.py#L179 you set the period to whatever is in the
Period
field but you hardcode the time range to be one day. This results in the following error:when the period is (for example L-6621E65D quota):
What did you expect to happen?
I expected Cloud Custodian to keep its cool.
Cloud Provider
Amazon Web Services (AWS)
Cloud Custodian version and dependency information
The text was updated successfully, but these errors were encountered: