@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.
@@ -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: End-to-end EKS workflow bridging AWS infrastructure and Kubernetes workloads
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 \
@@ -8,7 +8,7 @@ user-invocable: true
8
8
 
9
9
  ## How chant and CloudFormation relate
10
10
 
11
- chant is a **synthesis-only** tool — it compiles TypeScript source files into CloudFormation JSON (or YAML). chant does NOT call AWS APIs. Your job as an agent is to bridge the two:
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`** 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.
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