ワンクリックで
drift-check
Detect and summarise CloudFormation stack drift — differences between deployed resources and their template definitions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Detect and summarise CloudFormation stack drift — differences between deployed resources and their template definitions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Generate a monthly capacity and cost report for a service or AWS account, with rightsizing recommendations
Explain what a CloudFormation template does in plain English, including architecture, costs, and access patterns
Review a CloudFormation template for security issues, cost risks, and compliance violations
Assess the blast radius and deployment risk of changes to a CloudFormation template
Generate a rough monthly cost estimate for a CloudFormation template or proposed architecture
Review IAM roles, policies, and trust relationships in a CloudFormation template for least-privilege compliance
| name | drift-check |
| description | Detect and summarise CloudFormation stack drift — differences between deployed resources and their template definitions |
Check the specified CloudFormation stack for drift and report what has changed outside of CloudFormation.
If the stack name is not in context, ask: "Which stack would you like to check for drift? Provide the stack name and AWS region."
Use the cloudformation MCP tool to initiate a drift detection on the stack:
detect_stack_drift with the stack namedescribe_stack_drift_detection_status)Once complete, call describe_stack_resource_drifts to get the full drift report.
Analyse the results and produce a report.
| Status | Count |
|---|---|
| DRIFTED resources | X |
| IN_SYNC resources | X |
| NOT_CHECKED resources | X |
| Detection completed | [timestamp] |
For each drifted resource:
Resource: [LogicalResourceId] ([ResourceType])
Physical ID: [id]
Drift status: MODIFIED / DELETED / NOT_FOUND
Property differences:
Property: [PropertyPath]
Expected (template): [value]
Actual (live): [value]
Classify each drifted resource:
| Resource | Drift type | Risk | Recommended action |
|---|---|---|---|
| MySecurityGroup | Security group rule added | HIGH | Who added this? Remove if unauthorized, or update template to codify it |
| MyECSService | DesiredCount changed | LOW | Auto-scaling changed this — consider excluding from drift check |
Risk levels:
For each HIGH/MEDIUM drift, provide one of:
aws cloudformation drift-detect + update-stack# Option 1: Revert drifted resources by redeploying the stack
aws cloudformation deploy \
--stack-name {stack-name} \
--template-file template.yaml \
--parameter-overrides ... \
--capabilities CAPABILITY_IAM
# Option 2: Import the drift into the template (for intentional changes)
# Edit template.yaml to match the actual state, then redeploy