Rain
$ rain Official High RiskRain (rain) streamlines AWS CloudFormation authoring and deployment with rain deploy, rain diff, rain ls, rain logs, rain build --json, and rain fmt --json. Designed for fast iterative stack diffs and clean error logs without verbose raw CloudFormation boilerplate.
brew install rain rain inspects local CloudFormation templates, formats/converts YAML-to-JSON, and diffs against live stacks much more compactly than raw aws cloudformation or MCP tools.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json on template commands (build, fmt), --yes non-interactive deployment, and clean --profile/--region flags.
- Supports
rain build --json,rain fmt --json, andrain deploy --yes - Clean Go CLI with concise stack event logs via
rain logs
Uses standard AWS IAM profiles and asks confirmation before deploy/rm unless --yes is passed, though CloudFormation mutations carry high blast radius.
- Requires
--yesto bypass interactive confirmation ondeployandrm
Single static Go binary available via Homebrew and GitHub releases across macOS, Linux, and Windows.
- Available via
brew install rainwith no Python/Node runtime required
Substantially more ergonomic and token-efficient than aws cloudformation for stack diffs, template scaffolding, and failure logs.
- Built-in
rain diff,rain logs, andrain forecastdiagnostics
Official AWS CloudFormation team project (aws-cloudformation/rain) under Apache-2.0 license.
- Official
aws-cloudformation/rainrepository under Apache-2.0
Clean GitHub Pages docs and self-documenting Cobra --help commands.
- Published docs at aws-cloudformation.github.io/rain
Security, Auth & Guardrails
Reuses standard AWS SDK profiles (~/.aws/credentials, ~/.aws/config, --profile) and AWS_* environment variables.
Apache-2.0 open-source CLI; rain deploy provisions billable AWS CloudFormation resources.
# Rain (AWS CloudFormation) Agent Rules - Run `rain fmt <file>` and `rain ls` / `rain logs <stack>` before deploying. - Pass `--yes` on `rain deploy` only after user approval; never run `rain rm <stack> --yes` unapproved. - Pin `--profile` and `--region` explicitly.
Agent-Ready Command Recipes
Safe Read-Only Queries
rain ls
Lists stack names and statuses in the target AWS region.
rain fmt template.yaml --json
Parses and validates a local CloudFormation template and emits canonical JSON to stdout.
Controlled Writes & Previews
rain deploy template.yaml my-stack --yes --params Env=staging
Passes --yes and explicit --params so rain deploy does not block waiting for confirmation.
Strengths for Agents
- +
rain fmt --jsonandrain build --jsonsimplify local CloudFormation authoring and validation. - + Concise
rain logsandrain diffcut noise compared to raw AWS CLI CloudFormation output. - + Single static Go binary with
--yesfor non-interactive deploys.
Caveats & Pitfalls
- !
rain lsandrain logsdefault to human-readable text rather than JSON. - ! Omitting
--yesonrain deployorrain rmtriggers an interactive confirmation prompt.