AWS Amplify CLI
$ amplify Official High RiskOfficial AWS Amplify Gen 1 CLI (@aws-amplify/cli) for scaffolding and pushing cloud backends from local categories. While --yes and complex headless JSON stdin payloads exist for CI, its prompt-heavy design, heavy Node runtime, and CloudFormation state make it tricky for autonomous agents.
npm install -g @aws-amplify/cli Keep local amplify/ directory state synced via amplify CLI if maintaining a Gen 1 repo; prefer aws CLI or Amplify Gen 2 (ampx) for cleaner automation.
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
Interactive wizards dominate add/update/init; headless mode requires undocumented or verbose JSON stdin blobs, and status outputs ASCII tables rather than JSON.
amplify addandamplify configureprompt interactivelyamplify push --yessupports non-interactive execution once configured
Provisions live AWS CloudFormation stacks with billing and IAM implications; lacks a native dry-run flag for push beyond amplify status.
amplify statusshows category diffs beforepushamplify deletetears down entire cloud environments
Very large npm dependency tree or packaged installer with slow cold startup and Node version sensitivity.
- Heavy npm package (
@aws-amplify/cli) with slow startup
Convenient high-level scaffolding for Cognito/AppSync/S3 in legacy Gen 1 projects, though AWS now steers new apps toward Gen 2.
- Manages multi-service CloudFormation templates from
amplify/
Official AWS CLI under Apache-2.0, though Gen 1 is increasingly superseded by Amplify Gen 2 (ampx).
- Official
aws-amplify/amplify-clirepository
Extensive AWS documentation covering Gen 1 CLI commands and headless CI scripts.
- Documented at docs.amplify.aws/gen1/tools/cli/
Security, Auth & Guardrails
Uses standard AWS SDK credential chains (~/.aws/credentials, ~/.aws/config, or AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY).
Apache-2.0 open-source CLI; provisioned AWS resources (Cognito, AppSync, Lambda, DynamoDB) incur AWS billing.
# AWS Amplify CLI (amplify) Agent Rules - Always run `amplify status` before `amplify push --yes` to inspect CloudFormation diffs. - Never run `amplify delete` or `amplify remove` without explicit user confirmation. - Avoid `amplify add <category>` without prepared headless JSON payloads, as it opens interactive wizards.
Agent-Ready Command Recipes
Safe Read-Only Queries
amplify status
Prints a table of Create/Update/Delete diffs for local backend categories without pushing to AWS.
Controlled Writes & Previews
amplify push --yes
Deploys pending CloudFormation stack changes using --yes to skip confirmation prompts.
Strengths for Agents
- +
amplify statusclearly summarizes pending CloudFormation creates, updates, and deletes. - + Reuses standard AWS CLI profiles and environment variables.
- +
amplify push --yessupports CI deployments once backend files are authored.
Caveats & Pitfalls
- ! Most
amplify add/initflows launch multi-step interactive prompts unless fed complex headless JSON schemas. - ! Heavy installation footprint, slow startup, and no
--jsonoutput onamplify status.