chant on AWS
llms.txt lists every page for an agent
For a team whose infrastructure runs on AWS: typed CloudFormation in TypeScript, built to a standard template, and deployable to a local emulator before it reaches an account.
Works
- Typed CloudFormation resources and composites such as
LambdaNode, built to a standard template bychant build - Deploys to Floci, a local AWS emulator, through
awsApply, with no account and no credentials - An EKS cluster from the AWS lexicon and its workloads from the Kubernetes lexicon, in one project
Differs
By forge
--generate githubwrites the pull-request workflow under.github/workflows/, run onpull_requestand onpushto the target branch.- Both jobs use the job's own
github.token. On a pull request from a fork that token is read-only, so the plan note and the status are not posted.
--generate gitlabwrites.gitlab-ci.yml, andapplyruns one at a time per environment throughresource_group.- A CI job token cannot write merge request notes, so set a project access token with the
apiscope as the masked variableCHANT_FORGE_TOKEN. - The GitLab CI + AWS ALB tutorial deploys a multi-service Fargate application from GitLab CI.
--generate forgejowrites the GitHub workflow in the Forgejo dialect under.forgejo/workflows/: the runner label, action references by URL, and nopermissionsblock.- Forgejo workflows are GitHub-dialect, so
chant auditapplies its GitHub rules to them.
First step
npm install --save-dev @intentius/chant-lexicon-awsnpx chant init my-infra --lexicon awsShow the whole prompt
Read https://intentius.io/chant/for/aws/.
Set up chant with the aws lexicon in this repository.
Install it with `npm install --save-dev @intentius/chant-lexicon-aws`, run `npx chant init . --lexicon aws`, and read every `skills/*/SKILL.md` it writes before you author anything.
Run `npx chant build` and `npx chant lint` until both pass, and open a pull request with the result. Deploy only to Floci, the local AWS emulator, and only when I ask.
Never deploy to a real cloud account or shared environment (with `chant run`, `chant components` or a platform's own CLI), approve (a pull request review, `chant approve` or `chant run approve`), override a policy denial (`chant approve policy-override`), or merge; never cut or publish a release (`chant release cut --yes` or `chant release publish`), push or delete a `ci/*` tag (`chant ci tick` pushes them), or change the value of an existing flag; never touch `.chant/allowed_signers` or `chant/lifecycle`.Proof
Example projects in the chant repository for this room, each with a README that has the commands to run it. The last rows count the examples each lexicon ships, read from the repository when this site was built.
| Example | Where |
|---|---|
local-cloud-trio | examples/local-cloud-trio |
k8s-eks-microservice | examples/k8s-eks-microservice |
gitlab-aws-alb-infra | examples/gitlab-aws-alb-infra |
| 19 examples | lexicons/aws/examples |