AWS Copilot CLI
$ copilot Official High RiskAWS Copilot CLI (copilot) provisions and deploys containerized applications onto Amazon ECS, Fargate, and AWS App Runner using declarative copilot/ manifests, offering --json output on inspection commands (app, env, svc show/ls).
brew install copilot-cli copilot operates directly on local copilot/*/manifest.yml files and Dockerfiles, making local CLI execution natural.
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
ls, show, and status commands support --json, while copilot init and several setup wizards default to interactive prompts.
- Supports
--jsononls/show/status;initwizard is interactive
Declarative manifest files and environment isolation help, though deploy lacks a --dry-run diff mode.
- Manifest-driven ECS deployments;
copilot svc packagerenders CloudFormation
Single static Go binary available via Homebrew and GitHub releases across macOS, Linux, and Windows.
- Single Go binary via
brew install copilot-cli
Drastically simplifies ECS/Fargate boilerplate, though tailored strictly to opinionated container patterns.
- Generates VPC/ALB/ECS CloudFormation stacks automatically
Official aws/copilot-cli repository under Apache-2.0, now in slower maintenance cadence.
- Official
aws/copilot-cliGitHub repository
Clear documentation site and built-in --help.
- Documentation at aws.github.io/copilot-cli
Security, Auth & Guardrails
Reuses standard AWS CLI credentials from ~/.aws/credentials, AWS_PROFILE, or environment keys.
CLI is free (Apache-2.0); provisioned ECS/ALB/NAT resources incur AWS billing.
# AWS Copilot Agent Rules - Read state via `copilot svc ls --json` and `copilot svc show --json` first. - Avoid `copilot init` (interactive wizard); pass explicit flags on `app/env/svc init`. - Do not run `copilot app delete` or `copilot env delete` without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
copilot svc ls --json
Outputs all services in the current Copilot application as structured JSON.
copilot svc show --name api --json
Prints service routes, environment overrides, and ECS/App Runner details in JSON.
Strengths for Agents
- + Fast Go binary with
--jsononls,show, andstatuscommands. - +
copilot svc packageemits the underlying CloudFormation template for inspection. - + Declarative
manifest.ymlfiles fit Git-tracked agent edits.
Caveats & Pitfalls
- !
copilot inittriggers an interactive TUI wizard unless replaced by explicit subcommands. - ! No built-in
--dry-rundiff view beforecopilot svc deploy.