# Assume IAM role during cloud agent build step

**URL:** <https://forum.cursor.com/t/assume-iam-role-during-cloud-agent-build-step/166322>\
**Category:** Feature Requests\
**Tags:** cloud-agents\
**Created:** [July 21, 2026, 10:54pm UTC](https://forum.cursor.com/t/assume-iam-role-during-cloud-agent-build-step/166322 "2026-07-21T22:54:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkchau](https://avatars.discourse-cdn.com/v4/letter/k/ac8455/32.png) [@kkchau](https://forum.cursor.com/u/kkchau)\
**Post date:** [July 21, 2026, 10:54pm UTC](https://forum.cursor.com/t/assume-iam-role-during-cloud-agent-build-step/166322/1 "2026-07-21T22:54:27Z")

</div>

### Feature request for product/service

Cloud Agent (GitHub, Slack, Linear,…)

### Describe the request

Allow assumption of defined IAM role during cloud agent Docker build step to e.g. pull a base image from private ECR when defining a cloud agent image via [Cloud Environment Setup | Cursor Docs](https://cursor.com/docs/cloud-agent/setup#manual-setup-with-dockerfile-advanced). Currently, IAM roles are only supported during install, after the image has already been built. Split off from [Create Cursor cloud agent with AWS IAM roles without Bedrock - #11 by kkchau](https://forum.cursor.com/t/create-cursor-cloud-agent-with-aws-iam-roles-without-bedrock/164018/11).
