<p>Not as far as I know. </p>

<p>You can create <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html" rel="nofollow noreferrer"><strong>Billing alerts</strong></a> to get notifications when AWS thinks that your monthly spend may be over a given threshold.</p>

CC BY-SA 4.0
2020-04-08T22:21:03.727Z
2020-04-08T22:21:03.727Z
MLu
<p>There's not such a policy as far as I know.</p>

<p>That being said, you could trigger a lambda and then make this lambda check the properties of your bucket and then you would perform any actions you need.</p>

CC BY-SA 4.0
2020-04-09T15:53:39.167Z
2020-04-09T15:53:39.167Z
Guillermo Mansilla
<p>We have an AWS S3 bucket that accepts uploads from untrusted sources which are then processed and moved out of the bucket. </p>

<p>Is there a Policy that can limit the growth of the bucket to some predetermined upper bound to protect us in case something goes wrong?</p>

<amazon-s3><aws-cli>
Is there a policy that can limit the growth of an AWS S3 buckets total size?
David Parks
# Is there a policy that can limit the growth of an AWS S3 buckets total size?

(Asked by: username_0 on 2020-04-08)

We have an AWS S3 bucket that accepts uploads from untrusted sources which are then processed and moved out of the bucket.

Is there a Policy that can limit the growth of the bucket to some predetermined upper bound to protect us in case something goes wrong?

**Tags:** amazon-s3, aws-cli


---

## 2 answers

### Answer by username_1 on 2020-04-08. Score: 1 | Accepted answer

Not as far as I know.

You can create [**Billing alerts**](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/monitor_estimated_charges_with_cloudwatch.html) to get notifications when AWS thinks that your monthly spend may be over a given threshold.


---

### Answer by username_2 on 2020-04-09. Score: 1

There's not such a policy as far as I know.

That being said, you could trigger a lambda and then make this lambda check the properties of your bucket and then you would perform any actions you need.


---

