Skip to content

Commit 2cc7b80

Browse files
ci: verify examples in CI and note Lambda Version ARN resolvable
Add a `Verify examples` step to the checks job, right after `Verify schema`, so `make verify-examples` runs on every PR and catches Resolvable shape regressions in the example formae. Also record the new `AWS::Lambda::Version` functionArn resolvable in the changelog.
1 parent d3647d8 commit 2cc7b80

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
- name: Verify schema
6060
run: make verify-schema
6161

62+
- name: Verify examples
63+
run: make verify-examples
64+
6265
# Integration tests run against real AWS resources (Route53, EC2, etc.)
6366
# These are self-contained: each test creates and cleans up its own resources.
6467
test-integration:

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ formae agent.
3939
configuration on the first update — so the resource is **not discoverable**
4040
in this version. Discovery can be enabled once the full property surface is
4141
modelled.
42+
- `AWS::Lambda::Version` now exposes a `res.functionArn` resolvable carrying
43+
its qualified (versioned) function ARN, so a CloudFront distribution's
44+
`lambdaFunctionAssociations` entry can reference a published version by
45+
reference instead of a hand-edited literal ARN pin. Lambda@Edge rejects
46+
`$LATEST`, so the association has always needed a versioned ARN; previously
47+
that ARN had to be copied in by hand. Note the caveat this doesn't remove:
48+
every field on `Version` is create-only, so a function code change publishes
49+
a *replacement* version rather than updating the existing one. The safe
50+
order is publish the new version, re-point the distribution at it, wait for
51+
CloudFront to propagate the change, and only then delete the old version,
52+
and a replicated Lambda@Edge version can stay undeletable for a while after
53+
the association is removed. Exposing the resolvable removes the hand-edit;
54+
it does not change that ordering.
4255

4356
### Changed
4457

0 commit comments

Comments
 (0)