feat: Add AWS S3 scaler - #7899
Draft
parthmerchant wants to merge 1 commit into
Draft
Conversation
Add a new `aws-s3` scaler that scales a workload on the number of objects in an S3 bucket, using the S3 ListObjectsV2 API. The implementation follows the existing AWS SQS queue scaler for its auth, endpoint and typed-config plumbing, and the Azure Blob scaler for its object-counting semantics: - `bucketName` (required), `targetObjectCount` (default 5), `activationTargetObjectCount` (default 0) - `prefix`, `delimiter` (default "/") and `recursive` to control how the bucket is walked; `globPattern` to count only matching keys - `awsRegion` / `awsEndpoint` and the shared AWS authorization helpers, so IRSA/pod-identity and static credentials both work; a custom endpoint enables path-style addressing for S3-compatible stores - results are paginated via the SDK's ListObjectsV2 paginator Includes unit tests covering metadata parsing/defaults, metric spec naming, delimiter vs. glob counting, pagination and error handling, plus a CHANGELOG entry and registration in the scalers builder. Signed-off-by: parthmerchant <parth@parthmerchant.com>
parthmerchant
force-pushed
the
feat/aws-s3-scaler
branch
from
July 2, 2026 16:48
be68c9d to
c5788d9
Compare
|
Thank you for your contribution! 🙏 Please understand that we will do our best to review your PR and give you feedback as soon as possible, but please bear with us if it takes a little longer as expected. While you are waiting, make sure to:
Once the initial tests are successful, a KEDA member will ensure that the e2e tests are run. Once the e2e tests have been successfully completed, the PR may be merged at a later date. Please be patient. Learn more about our contribution guide. |
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Member
|
Please also create an issue with a feature request including some explanation. You can then link this to this PR. The issue will then be listed in the CHANGELOG.md. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provide a description of what has been changed
Checklist
make generate-scalers-schemahas been run to update any outdated generated filesFixes #
Relates to #