@intentius/chant-lexicon-aws 0.0.18 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/integrity.json +7 -6
- package/dist/manifest.json +1 -1
- package/dist/meta.json +1016 -239
- package/dist/rules/ext001.ts +4 -0
- package/{src/skills/chant-eks.md → dist/skills/chant-aws-eks.md} +5 -2
- package/dist/skills/chant-aws.md +4 -4
- package/dist/types/index.d.ts +919 -313
- package/package.json +20 -2
- package/src/composites/alb-shared.ts +14 -7
- package/src/composites/composites.test.ts +86 -2
- package/src/composites/fargate-alb.ts +24 -14
- package/src/composites/fargate-service.ts +16 -9
- package/src/composites/lambda-api.ts +7 -3
- package/src/composites/lambda-dynamodb.ts +8 -3
- package/src/composites/lambda-eventbridge.ts +10 -5
- package/src/composites/lambda-function.ts +10 -5
- package/src/composites/lambda-s3.ts +8 -3
- package/src/composites/lambda-sns.ts +13 -7
- package/src/composites/lambda-sqs.ts +12 -6
- package/src/composites/rds-instance.ts +15 -8
- package/src/composites/scheduled-lambda.ts +10 -5
- package/src/composites/vpc-default.ts +81 -30
- package/src/generated/index.d.ts +919 -313
- package/src/generated/index.ts +78 -15
- package/src/generated/lexicon-aws.json +1016 -239
- package/src/lint/post-synth/ext001.ts +4 -0
- package/src/plugin.ts +175 -574
- package/src/skills/chant-aws-eks.md +178 -0
- package/src/skills/chant-aws.md +430 -0
package/dist/rules/ext001.ts
CHANGED
|
@@ -73,6 +73,10 @@ function matchesCondition(condition: unknown, properties: Record<string, unknown
|
|
|
73
73
|
if ("enum" in s && Array.isArray(s.enum)) {
|
|
74
74
|
if (!s.enum.includes(properties[propName])) return false;
|
|
75
75
|
}
|
|
76
|
+
if ("pattern" in s && typeof s.pattern === "string") {
|
|
77
|
+
const val = properties[propName];
|
|
78
|
+
if (typeof val !== "string" || !new RegExp(s.pattern).test(val)) return false;
|
|
79
|
+
}
|
|
76
80
|
}
|
|
77
81
|
}
|
|
78
82
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
skill: chant-eks
|
|
3
|
-
description:
|
|
2
|
+
skill: chant-aws-eks
|
|
3
|
+
description: EKS end-to-end workflow — provision cluster, configure kubectl, deploy K8s workloads
|
|
4
4
|
user-invocable: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -33,6 +33,9 @@ AWS Lexicon (CloudFormation) K8s Lexicon (kubectl apply)
|
|
|
33
33
|
# Build CloudFormation template
|
|
34
34
|
chant build src/infra/ --output infra.json
|
|
35
35
|
|
|
36
|
+
# See what changed since last deploy (compares current build against last snapshot's digest)
|
|
37
|
+
chant state diff staging aws
|
|
38
|
+
|
|
36
39
|
# Deploy
|
|
37
40
|
aws cloudformation deploy \
|
|
38
41
|
--template-file infra.json \
|
package/dist/skills/chant-aws.md
CHANGED
|
@@ -8,7 +8,7 @@ user-invocable: true
|
|
|
8
8
|
|
|
9
9
|
## How chant and CloudFormation relate
|
|
10
10
|
|
|
11
|
-
chant is a **synthesis
|
|
11
|
+
chant is a **synthesis compiler** — it compiles TypeScript source files into CloudFormation JSON (or YAML). `chant build` does not call AWS APIs; synthesis is pure and deterministic. The optional `chant state snapshot` command queries AWS APIs to capture deployment metadata (physical IDs, status, outputs) for observability. Your job as an agent is to bridge synthesis and deployment:
|
|
12
12
|
|
|
13
13
|
- Use **chant** for: build, lint, diff (local template comparison)
|
|
14
14
|
- Use **AWS CLI** for: validate-template, deploy, change sets, rollback, drift detection, and all stack operations
|
|
@@ -344,9 +344,9 @@ aws cloudformation describe-stacks --stack-name <stack-name> --query 'Stacks[0].
|
|
|
344
344
|
|
|
345
345
|
### Step 2: Branch on status
|
|
346
346
|
|
|
347
|
-
- **`*_IN_PROGRESS`**
|
|
348
|
-
- **`*_FAILED` or `*_ROLLBACK_*`**
|
|
349
|
-
- **`*_COMPLETE`**
|
|
347
|
+
- **`*_IN_PROGRESS`** — Wait. Do not take action while an operation is in progress.
|
|
348
|
+
- **`*_FAILED` or `*_ROLLBACK_*`** — Read the events (Step 3).
|
|
349
|
+
- **`*_COMPLETE`** — Stack is stable. If behavior is wrong, check resource configuration.
|
|
350
350
|
|
|
351
351
|
### Step 3: Read the failure events
|
|
352
352
|
|