Skip to content

3.0.0: LambdaFunctionConstruct alias name, alias-only permissions, public alias, scoped log policy, S3 artifacts #110

Done

Description

@ncipollina

Objective

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.
  • Passes on net10.0 and net11.0.

Dependencies

Blocked by #109.


Milestone v3.0.0 · epic #108 · Beads cdkc-2lh.3 (epic cdkc-2lh).

Activity

  1. added this to the v3.0.0 milestone on Nov 24, 2026
  2. added
    ✨ enhancement
    breaking-change
    on Nov 24, 2026
  3. ncipollina commented on Nov 24, 2026

    @ncipollina
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-change✨ enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions