Claude Code Creates AWS Accounts via MCP: The Risks

Claude Code can now open a full AWS account end-to-end via MCP with no root user and no access keys. Here's the real blast radius and the checklist to lock it down.

Part of theAI Coding Tools & Workflow series
Close-up of server cooling fans in a vibrant data center
Listen to this article
--:--

Claude Code Creates AWS Accounts via MCP: The Risks

The decade-old AWS onboarding ritual just collapsed into a single prompt. Root user, then an IAM user, then a downloaded access key you were told never to lose: that whole sequence is gone. If you run a platform or security team, that should worry you more than it excites you.

Coding on a dark theme computer screen

On November 24, 2026, Rohini Gaonkar, a Developer Advocate at AWS, published a post titled "I Let Claude Code Create My AWS Account." In it, the ability to have Claude Code create an AWS account via MCP goes from zero to a deployable cloud environment with no human ever touching a root user or pasting a key. The post drew a wave of comments and reactions within days, and it landed in the same week two other MCP-security posts went viral. The developer reaction was delight. My reaction, after years of watching agents do exactly what you literally asked instead of what you meant, was: who approved the spend authority?

What is agentic AWS account creation via MCP

Agentic AWS account creation is a new AWS sign-up flow that lets a coding agent provision a brand-new AWS account on your behalf through the Model Context Protocol (MCP), the open standard that lets large language model agents call external tools. Instead of you clicking through a browser sign-up, the agent invokes an AWS MCP tool that starts "Sign up for AWS (new)," and the CLI returns temporary credentials directly to the agent. No root user created, no long-lived access keys ever downloaded or pasted.

Lines of colorful JavaScript code displayed on a dark screen

That last part is genuinely good security hygiene. Long-lived access keys are one of the most reliably leaked secrets on earth, and removing them from the onboarding path removes an entire class of credential-exfiltration incident. Gaonkar's walkthrough shows the account spinning up in the Free Tier with a $100 sign-up credit, up to $100 more earnable, and no credit card required until you deliberately upgrade.

The mechanics matter, so here is what the flow actually does, step by step:

  1. You prompt Claude Code — Anthropic's terminal-based coding agent — to set up AWS.
  2. The agent calls the AWS MCP server's sign-up tool and starts the new account flow.
  3. AWS provisions what it calls a project holding its own AWS account, with AWS-set defaults.
  4. The CLI hands temporary credentials straight back to the agent.
  5. The agent begins deploying resources, with no further human checkpoint unless you built one.

Five steps, one approval. That compression is the whole story. And the whole problem.

What you get, and what you give up

The trade is frictionless setup in exchange for centralized control. Gaonkar is candid that the account created this way is a project with AWS-set defaults, not the traditional root-user AWS account that essentially every piece of security guidance written in the last decade assumes you have. You give up part of the service catalog and the familiar root-level controls. You get an environment a non-expert can stand up in minutes.

Computer screen displaying lines of code

Here's how the two account types line up on the dimensions that actually matter to a security or platform team:

DimensionTraditional root-user accountAgentic "project" account
Creation pathHuman browser sign-upAgent via MCP, one prompt
Root userCreatedNone
Long-lived access keysDownloaded or pastedNone — temporary creds only
Service catalogFullPartial, AWS-set defaults
In your AWS OrganizationOnly if you invite itNo — born outside
BillingCard at sign-upNo card until Paid Plan upgrade
Spend capYour own budgetsOptional per-project limit

The billing model is where the celebratory framing thins out. New accounts stay in the Free Tier until the credits run out or the account turns six months old, whichever comes first. At that point you must upgrade to a Paid Plan. And the Paid Plan upgrade is irreversible, applies to every project under the account at once, and is the moment a payment method first enters the picture. You can set a per-project monthly spend limit to cap exposure, which is the single most important lever in the entire flow. And it is optional.

This is the part that maps onto something I learned the hard way. At Swiggy I built the order-cancellation microservice that handled replacements and refunds across millions of deliveries, and the clearest lesson from that work was that workflow systems with irreversible steps need explicit compensation paths, not retries. An irreversible Paid Plan upgrade triggered by an agent that "helpfully" kept building is exactly the kind of one-way door that has no undo. If the spend limit wasn't set first, there is no compensation path. Only an invoice.

The blast radius: what an agent with account-creation authority can do

Here's the thing nobody in the celebratory thread is saying: account-creation authority is a materially larger blast radius than the IAM-scoped access most teams grant their agents today.

Think about what sits downstream of a successful sign-up. A normal AI agent with a scoped IAM role can only do what that role permits inside one account. An agent that can create accounts can mint new, fresh environments outside your existing guardrails, each one a clean slate with its own credits, its own spend ceiling if someone remembers to set it, and its own absence from your monitoring. The concrete failure modes are not exotic:

  • Runaway spend past the free credits. An agent in a retry loop or chasing a misread objective can provision resources that quietly burn through the $100 + $100 credit and roll straight into billable territory once the account ages past six months.
  • Account sprawl. Every prompt that says "set me up a fresh AWS environment" can produce another project account that nobody logged, tagged, or added to a cost dashboard.
  • Attribution gaps. When the agent holds the temporary credentials, your logs show the account did something, not whether a human or a model initiated it.

And the cloud bill is only half the exposure. The agent is also spending on itself. Based on the frontier-model pricing I maintain at kunalganglani.com/llm-prices, a single long agent run can cost several dollars in inference before it provisions a cent of AWS compute. A model stuck in a provision-fail-retry loop pays both bills at once. That is the quiet LLM cost line nobody budgets for when they type "just set up AWS."

I don't think this is hypothetical paranoia. On this blog I run a seven-agent publishing pipeline with per-step idempotent keys, and the recurring lesson across 261 published posts is that the dangerous actions are never the loud ones. They're the quiet, irreversible ones an agent takes while technically doing what you asked. A slug-rewrite incident on live URLs once cost this site 907,000 impressions of link equity in a single run. A quiet one-way door, no malice required. Now imagine that class of mistake with a billing relationship attached.

If you're handing cloud-account authority to an agent, the kill switches and spend limits have to exist before the first prompt, not after the first invoice.

AWS's own answer: Agent Toolkit, IAM condition keys, CloudTrail

Here's the part most readers of the viral post won't know: AWS already shipped the seatbelt. Most teams just haven't buckled it.

The open-source awslabs/mcp MCP servers (roughly 10,000 GitHub stars, 1,900 forks, and over 150 open issues as of late November 2026) carry a README note that the Agent Toolkit for AWS, GA since May 2026, is the official successor for production use. The Agent Toolkit does the one thing the raw account-creation flow doesn't: it adds IAM condition keys that distinguish agent-taken actions from human-taken actions in CloudTrail and CloudWatch. That directly closes the attribution gap. When an agent provisions a resource, you can see in your audit trail that it was an agent, write policy that treats agent actions differently, and alert on them.

In practice that means you can write an IAM policy that denies a destructive action, say deleting an S3 bucket or detaching a policy, when the request carries the agent-action condition key, while still allowing a human with the same role to do it. Attribution stops being a forensic exercise after the fact and becomes an enforcement primitive you can deny on in real time.

That is a real, shipped mitigation for exactly the risk the sign-up flow introduces. AWS is clearly treating agent-to-cloud permission scope seriously. A companion post from the AWS Developer Advocate team covers the toolkit's Well-Architected skill, with built-in governance and evidence trails, in the same window.

If you want to see the connection pattern in action, this walkthrough covers wiring Claude up to an AWS MCP server end to end:

The gap isn't tooling. The gap is that a solo developer following Gaonkar's delightful one-prompt flow gets none of the Agent Toolkit's condition-key attribution by default. They get the fast path, and the governance is an opt-in they've never heard of. If you care about AI security at the organization level, the toolkit's condition keys are table stakes, not a nice-to-have.

The governance gap: AWS Organizations, SCPs, and shadow accounts

There's a second blind spot that no competing article touches, and it's the one that should keep platform leads up at night: an account created through this self-serve agent flow is born outside your AWS Organization.

It doesn't sit under your Service Control Policies. It doesn't inherit your tagging standards. It isn't watched by your Security Hub or GuardDuty aggregation. It doesn't show up in your consolidated billing. It is, by definition, a shadow account until a human notices it exists and manually invites it into the Organization. Every SCP guardrail you spent quarters building (deny this region, require this encryption, block this service) simply does not apply to an account your Organization has never heard of.

For a solo builder, that's a shrug. For a company, it's the mechanism by which a well-meaning engineer prompts Claude Code to "just spin up AWS for this experiment" and creates a billable, unmonitored environment holding real data, entirely off the books. This is the general MCP trust problem applied to the highest-stakes action available: opening a billable cloud account.

And the broader MCP ecosystem gives us every reason to take that seriously. Atul Kumar, writing on dev.to the same week, drew 154 comments arguing that MCP approvals must bind to the actual action executed, not the tool's name or description. An approved tool's schema can silently change after you approve it. A separate audit by Mohamed, an independent researcher who read 218 real-world MCP servers controlling physical and cloud machines, found many exposed to the whole network and documentation that "promises more than the code" enforces. With 32,919 known MCP servers in circulation by November 2026, the attack surface is enormous. And account creation is now part of it. A one-time "yes" to an AWS MCP tool is a one-time yes to an action whose downstream authority is a brand-new cloud account.

A practical checklist for security and platform teams

If you own cloud governance, treat self-serve agentic account creation as a capability to manage, not a feature to celebrate. Here's where I'd start:

  1. Disable self-serve agent account creation org-wide wherever your governance supports it, and make account provisioning flow through an approved path instead of any agent's temporary credentials.
  2. Require an account vending machine or AWS Control Tower. New accounts should be born inside your Organization with SCPs, tagging, and Security Hub attached, not invited in after the fact.
  3. Adopt the Agent Toolkit's IAM condition keys so CloudTrail tells you which actions an agent took versus a human. Attribution you can't query is attribution you don't have.
  4. Monitor CloudTrail for self-signup events and alert on any account that appears outside your vending pipeline. A shadow account you detect in an hour is a story. One you find on next month's bill is an incident.
  5. Enforce per-project monthly spend limits by default, and treat the Paid Plan upgrade as a change that requires human sign-off, because it's irreversible and account-wide.
  6. Bind approvals to actions, not tool names. Apply the same discipline the MCP server security crowd is preaching. An approval granted to "the AWS tool" should not implicitly authorize whatever that tool's schema becomes next week.

None of this is anti-agent. I use Claude Code daily and I think agentic AI collapsing onboarding friction is mostly a win. The lesson from running automated pipelines is the same one AWS's own toolkit encodes: a deterministic guardrail that runs before the model acts catches more than trusting a smarter model to behave. On this blog, deterministic gates before LLM review consistently caught more than doubling the review model would have. SCPs, spend caps, and vending machines are those gates for your cloud.

The account-creation flow is the first time an agent could open a billing relationship on your authority with a single prompt. It will not be the last agent action with real financial blast radius. The teams that win the next two years won't be the ones that said no to agents. They'll be the ones who wired the attack surface controls in before the demo went viral, not after the invoice arrived.

Photo by Winston Chen on Unsplash.

Continue reading

Computer code displayed on a dark screen with a terminal window showing system metrics

CLI-Anything: Make Any Software Agent-Native

CLI-Anything wraps any app in a thin command-line shim so AI agents can drive it like grep or git. Here's how it works, why CLIs beat prompt DSLs, and where it fits next to MCP.

hacker terminal screen hex code disassembler — illustration for article on REA: Reverse Engineer Anything With

REA: Reverse Engineer Anything With AI Agents

REA is the open-source MCP server that lets Claude Code, Codex, and Cursor reverse-engineer binaries, Electron apps, APKs, and live browsers. Here's what it does, how to set it up, and the legal line nobody else is drawing.

claude code terminal laptop screen — illustration for article on Claude Code Security [2026]: Risks, Safe

Claude Code Security: Risks, Safe Setup, Team Policy

Claude Code is safe only if you treat it like a junior engineer with terminal access. Here’s the 2026 playbook: permissions, sandboxing, egress controls, MCP allowlists, retention settings, and incident response.

Woman typing code on a laptop computer

Claude Code 2.0 New Rules: What Actually Changed [2026]

Anthropic quietly made auto mode the default for every Claude Code plan. Here's what the 2.0 'new rules' actually change — and the settings checklist to run today.

Cite this article
Kunal Ganglani (2026, November 28). Claude Code Creates AWS Accounts via MCP: The Risks. Kunal Ganglani. Retrieved November 28, 2026, from https://www.kunalganglani.com/blog/claude-code-aws-account-mcp

Frequently Asked Questions

What permissions does Claude Code need to create an AWS account via MCP?

It doesn't need pre-existing AWS credentials at all. The new sign-up flow lets the agent start account creation itself and receive temporary credentials directly from the CLI, with no root user created and no access keys downloaded. That means the agent's effective authority is account creation plus whatever the AWS-set defaults grant the new project — a broader scope than a normal IAM-scoped role.

Is it safe to let an AI agent create a cloud account for you?

For a solo experiment with a spend limit set, it's reasonable. For a company it's risky, because the account is created outside your AWS Organization, skips your Service Control Policies and monitoring, and carries irreversible billing decisions. Safe use depends on guardrails like default spend caps, CloudTrail alerting, and an approved account-vending path rather than self-serve agent sign-up.

Can an AI agent accidentally cause unexpected AWS charges, and can that be capped?

Yes. An agent in a retry loop or chasing a misread goal can provision resources that burn through the free credits and roll into billable usage once the account ages past six months or the credits run out. You can cap this with a per-project monthly spend limit, but it is optional, so it must be set deliberately before the agent starts building.

Does an AWS account created by an AI agent bypass AWS Organizations controls?

Yes. An account created through the self-serve agentic flow is born outside your AWS Organization, so it isn't covered by your SCPs, tagging standards, Security Hub, or consolidated billing until a human manually invites it in. Until then it's effectively a shadow account that none of your existing guardrails apply to.

How does AWS's Agent Toolkit address these security risks?

The Agent Toolkit for AWS, GA since May 2026 and the official successor to the open-source awslabs/mcp servers, adds IAM condition keys that distinguish agent-taken actions from human-taken actions in CloudTrail and CloudWatch. That closes the attribution gap, letting you see, alert on, and write policy against agent actions specifically. The limitation is that it's opt-in and the simple one-prompt sign-up path doesn't include it by default.