sam-cloudformation
Installation
SKILL.md
SAM CloudFormation
Use this skill when the failure lives in the SAM template, CloudFormation stack lifecycle, deployment-role/resource wiring, or the OIDC AssumeRole step that gates the deploy, and you need a deployment-oriented fix path that stays specific to SAM and CloudFormation.
Use this skill when
- An AWS SAM template fails validation, linting, or deployment.
- A CloudFormation stack is drifting, rolling back, or stuck in a rollback state during a SAM deploy.
- SAM or CloudFormation YAML has schema, transform, event, or resource-property errors.
- Resource wiring in a SAM template needs correction, especially IAM ARNs, events, or dynamic references.
- A GitHub Actions SAM deployment needs correct CloudFormation/SAM auth and deployment patterns rather than Terraform-shaped examples.
- A CI log shows
AccessDeniedonsts:AssumeRoleorsts:AssumeRoleWithWebIdentityfor the deployment role, so the deploy never reaches CloudFormation. - GitHub Actions OIDC auth for the deploy is failing on the trust policy, provider, audience, subject condition, or a session-tag contract.
- A CircleCI-to-GitHub-Actions migration may have left deploy roles or trust policies specific to CircleCI callers.