Loading...
Loading...
Author, validate, and troubleshoot AWS CloudFormation templates. Covers template authoring with secure defaults, pre-deployment validation (cfn-lint, cfn-guard, change sets), and root-cause diagnosis of failed stacks using CloudFormation events and CloudTrail correlation.
npx skill4agent add aws/agent-toolkit-for-aws aws-cloudformationPublicAccessBlockConfigurationBucketEncryptionVersioningConfigurationDeletionPolicy: RetainUpdateReplacePolicy: Retain!Sub "${AWS::StackName}-..."Stringdescribe-eventsaws cloudformation describe-events --change-set-id <arn> --region <region>describe-stack-eventsdescribe-eventsCREATE_FAILEDROLLBACK_COMPLETEUPDATE_ROLLBACK_FAILEDaws cloudformation describe-events --stack-name <name> --filters FailedEvents=true --region <region>describe-stack-events--filters--query--filtersResourceStatusReason| User intent | Action |
|---|---|
| Write or modify a template | Author task + best-practices checklist |
| Check a template before deploying | Validation pipeline (3 layers) |
| Stack failed or is stuck | Troubleshoot-deployment SOP |
| Unsure about a resource property | Resource property lookup SOP |
| Symptom | Likely cause | Action |
|---|---|---|
| Template validates but deployment fails | Runtime issue (IAM, quotas, AMI availability) | Use troubleshoot-deployment SOP |
| CLI may be outdated, or change set still creating | Upgrade CLI; wait for terminal status |
Agent uses | Legacy API — does not support filters or return validation errors | Switch to |
Stack stuck in | Resource in inconsistent state | Use troubleshoot-deployment SOP to identify stuck resource(s) before |