# Limit agent permissions and spend in AWS Transform custom

DevFeed: [Limit agent permissions and spend in AWS Transform custom](<https://devfeed.tech/articles/limit-agent-permissions-and-spend-in-aws-transform-custom-91356.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/devops/limit-agent-permissions-and-spend-in-aws-transform-custom/>)

Author: Hamza Alfarrash

Published: 2026-10-20T19:04:02Z

Content type: article

Language: en

Sources: [AWS DevOps & Developer Productivity Blog](<https://devfeed.tech/sources/aws-devops-developer-productivity-blog.md>)

Topics: [AWS Transform](<https://devfeed.tech/topics/aws-transform.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [agent](<https://devfeed.tech/tags/agent.md>), [autonomous](<https://devfeed.tech/tags/autonomous.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-transform](<https://devfeed.tech/tags/aws-transform.md>), [code](<https://devfeed.tech/tags/code.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [custom](<https://devfeed.tech/tags/custom.md>), [execution](<https://devfeed.tech/tags/execution.md>), [identity](<https://devfeed.tech/tags/identity.md>), [limit](<https://devfeed.tech/tags/limit.md>), [over](<https://devfeed.tech/tags/over.md>), [permissions](<https://devfeed.tech/tags/permissions.md>), [post](<https://devfeed.tech/tags/post.md>), [run](<https://devfeed.tech/tags/run.md>), [separate](<https://devfeed.tech/tags/separate.md>), [shell](<https://devfeed.tech/tags/shell.md>), [source](<https://devfeed.tech/tags/source.md>), [source-code](<https://devfeed.tech/tags/source-code.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [this](<https://devfeed.tech/tags/this.md>)

## AI overview

AWS Transform custom can run Java upgrades with three controls: an interactive trust allowlist for tool calls, an execute-only IAM identity for pipelines, and a per-run agent-minute cap backed by an account-level AWS Budgets alert. In the sample Java modernization, an allowlist reduced approval prompts from 23 to zero, but it applies only interactively; non-interactive runs require blanket tool trust. IAM can restrict execution of customer-published transformations by resource tag, while AWS-managed transformations require the broader managed-policy grant, and IAM does not constrain local repository edits. A one-minute cap stopped a test run at 1.09 minutes with exit code 2 and left the repository clean; usage reporting can overshoot slightly. Account budget alerts monitor cumulative spend but do not stop runs and may arrive after the threshold is exceeded. These measured results are specific to the sample and CLI versions described.

## Source excerpt

AWS Transform custom runs an autonomous agent with shell access over your source code, using your AWS credentials. This post bounds it with three controls: a scoped trust allowlist, an execution identity separate from the one that authors, and a per-run agent-minute cap backed by an account budget.