You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3.0.0: LambdaFunctionConstruct alias name, alias-only permissions, public alias, scoped log policy, S3 artifacts #110
Make LambdaFunctionConstruct usable for least-privilege, artifact-based native Lambda deployments.
Scope
U1 – alias name: an AliasName option (default live).
U2 – invocation permission targets: explicit targets (function, version, alias). The default is alias-only (owner decision, 2026-11-24). Alternative targets are opted into explicitly. Tests cover each combination, and the migration guide covers it.
U3 – public alias: expose the alias publicly (and the version, if useful).
U4 – scoped logging policy: limit the execution-role logging policy to the construct's own log group ARN (logs:CreateLogStream, logs:PutLogEvents). Remove logs:CreateLogGroup and logs:TagResource and the {name}* wildcard, since the construct already creates the log group.
U7 – S3 artifact code: support code from an existing S3 artifact (bucket and key) as well as a local asset, without bucket write grants. Sharedale's immutable artifact model needs this.
Library conventions: update the Testing helpers (LambdaFunctionConstructAssertions, LambdaFunctionConstructPropsBuilder), the docs and the golden templates.
Acceptance criteria
Tests are written first and observed failing for the intended reason, then pass, for each of U1, U2, U3, U4 and U7. Compono-first.
Golden-template changes are limited to U2's default permission targets and U4's policy, and are listed in the migration guide with before/after examples.
No wildcard log-group resource; no permission on the function or version unless requested.
Accepted on merge evidence: #115 merged as ffbb98c; Publish Preview published 3.0.0-preview.32 (and 3.0.0-preview.33 after #116). Acceptance: U1, U2, U3, U4, U7 each test-first with observed Red then Green; golden diffs limited to U2/U4 with before/after in docs/migration/v3.md; no wildcard log-group resource and no function/version permission unless requested; 618/618 tests on net10.0 and net11.0.
Activity
feat(lambda)!: alias name, alias-only permission default, public alia…
ncipollina commentedon Nov 24, 2026
Accepted on merge evidence: #115 merged as ffbb98c; Publish Preview published
3.0.0-preview.32(and3.0.0-preview.33after #116). Acceptance: U1, U2, U3, U4, U7 each test-first with observed Red then Green; golden diffs limited to U2/U4 with before/after in docs/migration/v3.md; no wildcard log-group resource and no function/version permission unless requested; 618/618 tests on net10.0 and net11.0.