一键导入
provision-account
Provision a new AWS account in a Terraform-managed infrastructure repo. Detects current progress and routes to the appropriate phase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Provision a new AWS account in a Terraform-managed infrastructure repo. Detects current progress and routes to the appropriate phase.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Creates directed workflow files for any repository. Generates structured markdown that AI agents execute interactively to guide users through multi-step configuration processes like service onboarding, environment setup, and infrastructure provisioning. Use when asked to create a directed workflow, encode a process, or build an agent-guided configuration flow.
Add a new host or host group to an Ansible-managed infrastructure repo. Detects current progress and routes to the appropriate phase.
Grant access to a new contributor. Detects current progress and routes to the appropriate phase.
Onboard a new service to a Kubernetes platform. Detects current onboarding progress and routes to the appropriate phase.
| name | provision-account |
| description | Provision a new AWS account in a Terraform-managed infrastructure repo. Detects current progress and routes to the appropriate phase. |
| metadata | {"author":"platform-team","version":"2.0"} |
| compatibility | Works with any AI IDE that supports file references. Requires Terraform CLI for local validation (terraform fmt, terraform validate). No AWS credentials needed -- the workflow produces .tf files validated locally. |
Walk through the complete process of provisioning a new AWS account in your Terraform infrastructure repo. This workflow produces small, focused pull requests -- one per phase.
{org}-terraform-state). Verify state from the filesystem before asking the user.main before invoking this workflow (or git pull if working on a direct clone). Progress detection relies on files merged to the upstream primary branch -- not local commits, uncommitted changes, or prior session output. If you generated files in a previous session that haven't been merged yet, they don't count as completed work.Ask (all questions upfront):
123456789012)acme-staging, used for directory naming)After getting the account alias, inspect the repository to determine what's already been completed. Detection must be based on files merged to the primary branch -- not on local uncommitted files, unmerged feature branches, or content from prior chat sessions. If a file was generated in a previous session but its PR hasn't merged, that phase is not complete.
| Check | What to Look For | Indicates |
|---|---|---|
| Provider config | accounts/{account-alias}/provider.tf | Phase 1 complete |
| State backend | accounts/{account-alias}/backend.tf | Phase 2 complete |
| IAM baseline | accounts/{account-alias}/iam-baseline.tf | Phase 3 complete |
| Detected State | Recommended Action |
|---|---|
| No account directory | Start at Phase 1 |
| Provider exists, no backend | Continue at Phase 2 |
| Backend exists, no IAM baseline | Continue at Phase 3 |
| IAM baseline exists | Provisioning complete |
Ask: "Based on my analysis, you appear to be at [detected phase]. Would you like to:
| User Choice | Action |
|---|---|
| Continue detected phase | Load the corresponding phase file |
| Different phase | Ask which phase, then load that file |
| Review configuration | Summarize existing files, then ask which phase |
| Scenario | Phases |
|---|---|
| Standard (new account, new state bucket) | 1 → 2 → 3 |
| Existing state bucket | 1 → 3 (skip Phase 2 backend creation if bucket already exists) |
| Phase | File | Description | PR |
|---|---|---|---|
| 1 | references/phase-01-provider.md | AWS provider, version constraints | 1 |
| 2 | references/phase-02-state.md | S3 backend, DynamoDB lock table | 1 |
| 3 | references/phase-03-iam.md | IAM baseline roles, outputs | 1 |