aws-amplify / aws-amplify/amplify-cli

How can I limit the amount of megabytes my users upload to S3?

Open
#5,866 17 comments 9 reactions 0 assignees View on GitHub
feature-request p4 storage
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

My project uses S3 and Cognito, among other AWS services.
The users can upload their pictures to S3, and other users can see them.

My question is, what about if I user (actually, an attacker), keeps uploading more and more MB of data on purpose?
Is there any way to limit this?
What should I do to cope with this scenario?
Is it possible to setup an alarm in cloud watch just in case?

Thanks a lot for suggestions.

**Which Category is your question related to?**
Storage

**Amplify CLI Version**
4.32.1

**What AWS Services are you utilizing?**
S3, cognito

**Provide additional details e.g. code snippets**
NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.