# S3 Existing Bucket creates IAM role

**URL:** <https://forum.serverless.com/t/s3-existing-bucket-creates-iam-role/14517>\
**Category:** Serverless Framework\
**Tags:** iam\
**Created:** [March 26, 2021, 12:00pm UTC](https://forum.serverless.com/t/s3-existing-bucket-creates-iam-role/14517 "2021-03-26T12:00:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcwrightson](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/jcwrightson/32/5443_2.png) [@jcwrightson](https://forum.serverless.com/u/jcwrightson)\
**Post date:** [March 26, 2021, 12:00pm UTC](https://forum.serverless.com/t/s3-existing-bucket-creates-iam-role/14517/1 "2021-03-26T12:00:40Z")

</div>

When trying to create a s3 trigger on an existing bucket, serverless needs to create an IAM role in the background, however there is no way (so it seems) to attach a permission boundary to this new role. Thus how is this useful? My serverless deploy user is ofc restricted by a permission boundary to prevent privilege escalation attacks yet to attach a trigger to an existing bucket requires than my serverless user is allowed to create IAM roles without any boundary? 🤦‍♂️
