Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quota_region_override for quotas that report in us-east-1 only #48

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

taraspos
Copy link

Summary

AWS S3 is a global service and default quota value is reported from us-east-1 only. Added quota_region_override=us-east-1 to be able to fetch it.

AWS CLI Example:

➜  aws-quota-checker git:(taras/add-quota-region-override) aws service-quotas get-aws-default-service-quota --service-code s3 --quota-code L-DC2B2D3D --region us-east-1
{
    "Quota": {
        "ServiceCode": "s3",
        "ServiceName": "Amazon Simple Storage Service (Amazon S3)",
        "QuotaArn": "arn:aws:servicequotas:::s3/L-DC2B2D3D",
        "QuotaCode": "L-DC2B2D3D",
        "QuotaName": "General purpose buckets",
        "Value": 10000.0,
        "Unit": "None",
        "Adjustable": true,
        "GlobalQuota": true,
        "UsageMetric": {
            "MetricNamespace": "AWS/Usage",
            "MetricName": "ResourceCount",
            "MetricDimensions": {
                "Class": "None",
                "Resource": "GeneralPurposeBuckets",
                "Service": "S3",
                "Type": "Resource"
            },
            "MetricStatisticRecommendation": "Maximum"
        },
        "Period": {
            "PeriodValue": 5,
            "PeriodUnit": "MINUTE"
        }
    }
}
➜  aws-quota-checker git:(taras/add-quota-region-override) aws service-quotas get-aws-default-service-quota --service-code s3 --quota-code L-DC2B2D3D --region us-west-2

An error occurred (NoSuchResourceException) when calling the GetAWSDefaultServiceQuota operation:

Resolves #45

@taraspos taraspos merged commit ed453b0 into teleport Nov 21, 2024
4 checks passed
@taraspos taraspos mentioned this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

S3 s3_bucket_count aws default quota (only?) available in us-east-1
2 participants