Skip to main content

Claude/ChatGPT Prompt to Design a Secure Multi-Account AWS Setup

Design a secure multi-account AWS foundation with Organizations, Control Tower, SCP guardrails, and centralized logging.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt

                                

What this prompt does

This prompt makes the model act as a senior AWS platform architect and specify a secure multi-account foundation tightly enough to build. You provide [team_size], [workloads], and [compliance], and it returns an account structure, a Control Tower landing zone with IAM Identity Center SSO, example Service Control Policies as JSON, centralised CloudTrail and GuardDuty, a break-glass access path, and a phased rollout that migrates an existing single account without downtime.

The structure works because it treats account boundaries as the primary security control, then layers guardrails on top. The [compliance] value (for example, SOC 2 with centralized audit logging) drives the logging and SCP design, so the audit trail is built in rather than retrofitted. [team_size] shapes the SSO and access model, and [workloads] decides how many prod, staging, and dev accounts you actually need. Asking for example SCP JSON snippets forces the abstract guardrails into something you can paste and adapt, instead of hand-waving about "policies you should add." The phased rollout at the end matters just as much, because it sequences the migration so the security and logging accounts exist before any workload moves into the org.

When to use it

  • You've outgrown a single AWS account and dev and prod share dangerous blast radius.
  • You're pursuing SOC 2 or similar and need centralised, tamper-resistant audit logging.
  • You want SCP guardrails that stop a single mistake from becoming a company-wide incident.
  • You're setting up SSO across a growing engineering org with IAM Identity Center.
  • You need a documented break-glass path for emergency access.
  • You have to migrate from one account to a multi-account org without downtime.

Example output

Expect an account-structure diagram described in text — management, security tooling, log archive, prod, staging, and dev, each with a reason it's separate — followed by two or three example SCP JSON snippets you can adapt, a CloudTrail and GuardDuty centralisation plan, a break-glass procedure, and a phased rollout plan ordered so nothing breaks mid-migration.

Pro tips

  • State [compliance] precisely; SOC 2 versus HIPAA versus nothing changes the logging and SCP requirements substantially.
  • Stand up the log-archive and security accounts first, as the prompt's rollout suggests — you can't retrofit a clean audit trail.
  • Treat the example SCPs as templates; test each one in a sandbox OU before applying it org-wide, since a bad SCP can lock out legitimate work.
  • Use [workloads] to justify each account; don't create accounts you have no workload for.
  • Confirm the break-glass path actually works before you tighten the guardrails around it.
  • Keep [team_size] realistic so the SSO and permission-set design matches how people actually need access.
  • Apply CloudTrail centralisation to the log-archive account early; a tamper-resistant trail is most valuable when it predates the incident you'll need it for.
  • Roll out one OU at a time and watch GuardDuty findings as you go, rather than flipping every guardrail across the org in a single change.

Frequently Asked Questions

Does this include real Service Control Policy JSON I can use?
Yes, it returns two or three example SCP JSON snippets as guardrails. Treat them as templates to adapt, and always test an SCP in a sandbox organizational unit before applying it across the whole org, since a misconfigured policy can block legitimate work.
Can it migrate an existing single account without downtime?
Yes. Step 6 produces a phased rollout order designed so an existing single account migrates into the multi-account structure without downtime, with the security and log-archive accounts stood up first.
Is this specific to SOC 2 compliance?
No. Set `[compliance]` to whatever baseline you need, such as HIPAA or none at all, and the model adjusts the logging design and SCP guardrails accordingly. The default example uses SOC 2 with centralized audit logging.
Why does it create so many separate accounts?
Separate accounts limit blast radius, so a mistake in dev cannot delete production resources. The prompt explains why each account exists, and you can scope the count to your actual `[workloads]` rather than creating empty accounts.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in AWS & Cloud Architecture Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support