feat(lambda): add Java8AL2023, Java11AL2023 and Java17AL2023 runtime for Lambda #38418 by Stefan9283 · Pull Request #38419 · aws/aws-cdk · GitHub
Skip to content

feat(lambda): add Java8AL2023, Java11AL2023 and Java17AL2023 runtime for Lambda #38418 - #38419

Merged
mergify[bot] merged 5 commits into
aws:mainfrom
Stefan9283:java-on-al2023
Jul 29, 2026
Merged

mergify[bot] merged 5 commits into
aws:mainfrom
Stefan9283:java-on-al2023

Conversation

@Stefan9283

Copy link
Copy Markdown
Contributor

Issue # (if applicable)

N/A

Reason for this change / Description of changes

Adds Java 8, 11 and 17 on AL2023 runtimes to the available Lambda Runtimes constants

Describe any new or updated permissions being added

N/A

Description of how you validated changes

Deploying integration testing stack on an AWS account where the enums can be accessed from (same command used for updating the snapshots)

stefantm@bcd074a07b96 framework-integ % yarn integ test/aws-lambda/test/integ.runtime.fromasset.js --update-on-failed
...
Verifying integration test snapshots...

  CHANGED    integ.runtime.fromasset 2.817s
      IAM Statement Changes
      ┌───┬──────────────────────────────────────────────────┬────────┬────────────────┬──────────────────────────────┬───────────┐
      │   │ Resource                                         │ Effect │ Action         │ Principal                    │ Condition │
      ├───┼──────────────────────────────────────────────────┼────────┼────────────────┼──────────────────────────────┼───────────┤
      │ + │ ${MyFunctionJava11AL2023ServiceRole9CD9CA41.Arn} │ Allow  │ sts:AssumeRole │ Service:lambda.amazonaws.com │           │
      ├───┼──────────────────────────────────────────────────┼────────┼────────────────┼──────────────────────────────┼───────────┤
      │ + │ ${MyFunctionJava17AL2023ServiceRoleBE0F5F2D.Arn} │ Allow  │ sts:AssumeRole │ Service:lambda.amazonaws.com │           │
      ├───┼──────────────────────────────────────────────────┼────────┼────────────────┼──────────────────────────────┼───────────┤
      │ + │ ${MyFunctionJava8AL2023ServiceRole5952BC6D.Arn}  │ Allow  │ sts:AssumeRole │ Service:lambda.amazonaws.com │           │
      └───┴──────────────────────────────────────────────────┴────────┴────────────────┴──────────────────────────────┴───────────┘
      IAM Policy Changes
      ┌───┬──────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────┐
      │   │ Resource                                     │ Managed Policy ARN                                                             │
      ├───┼──────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┤
      │ + │ ${MyFunctionJava11AL2023ServiceRole9CD9CA41} │ arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │
      ├───┼──────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┤
      │ + │ ${MyFunctionJava17AL2023ServiceRoleBE0F5F2D} │ arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │
      ├───┼──────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────────┤
      │ + │ ${MyFunctionJava8AL2023ServiceRole5952BC6D}  │ arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole │
      └───┴──────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────┘
      (NOTE: There may be security-related changes not in this list. See https://github.com/aws/aws-cdk/issues/1299)
      
      Resources
      [+] AWS::IAM::Role MyFunctionJava8AL2023ServiceRole5952BC6D
      [+] AWS::Lambda::Function MyFunctionJava8AL2023B6234D4A
      [+] AWS::IAM::Role MyFunctionJava11AL2023ServiceRole9CD9CA41
      [+] AWS::Lambda::Function MyFunctionJava11AL2023FF3451AA
      [+] AWS::IAM::Role MyFunctionJava17AL2023ServiceRoleBE0F5F2D
      [+] AWS::Lambda::Function MyFunctionJava17AL2023EE2F7E00
      
      Outputs
      [+] Output ExportsOutputRefMyFunctionJava8AL2023B6234D4A90460A9A: {"Value":{"Ref":"MyFunctionJava8AL2023B6234D4A"},"Export":{"Name":"aws-cdk-lambda-runtime-fromasset:ExportsOutputRefMyFunctionJava8AL2023B6234D4A90460A9A"}}
      [+] Output ExportsOutputRefMyFunctionJava11AL2023FF3451AA38C09BD3: {"Value":{"Ref":"MyFunctionJava11AL2023FF3451AA"},"Export":{"Name":"aws-cdk-lambda-runtime-fromasset:ExportsOutputRefMyFunctionJava11AL2023FF3451AA38C09BD3"}}
      [+] Output ExportsOutputRefMyFunctionJava17AL2023EE2F7E007CCE1499: {"Value":{"Ref":"MyFunctionJava17AL2023EE2F7E00"},"Export":{"Name":"aws-cdk-lambda-runtime-fromasset:ExportsOutputRefMyFunctionJava17AL2023EE2F7E007CCE1499"}}
      

Snapshot Results: 

Tests:    1 failed, 1 total
Failed: /Users/stefantm/CDKJavaAl2023/fork/aws-cdk/packages/@aws-cdk-testing/framework-integ/test/aws-lambda/test/integ.runtime.fromasset.js

Running integration tests for failed tests...

Running in parallel across regions: us-east-1, us-east-2, us-west-2
Running test aws-lambda/test/integ.runtime.fromasset.js in us-east-1

  SUCCESS    integ.runtime.fromasset 157.294s
      

Test Results: 

Tests:    1 passed, 1 total
✨  Done in 164.06s.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions Bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Jul 27, 2026
@github-actions github-actions Bot added the p2 label Jul 27, 2026
@aws-cdk-automation
aws-cdk-automation requested a review from a team July 27, 2026 17:01
@github-actions

Copy link
Copy Markdown
Contributor

@aws-cdk-automation aws-cdk-automation left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

@ozelalisen ozelalisen added the pr/needs-integration-tests-deployment Requires the PR to deploy the integration test snapshots. label Jul 27, 2026
@ozelalisen
ozelalisen temporarily deployed to deployment-integ-test July 27, 2026 17:13 — with GitHub Actions Inactive
Comment thread tools/@aws-cdk/enum-updater/lib/sdk-enums.json Outdated
@ozelalisen ozelalisen removed the pr/needs-integration-tests-deployment Requires the PR to deploy the integration test snapshots. label Jul 28, 2026
@ozelalisen

Copy link
Copy Markdown
Member

@Mergifyio update

@mergify

mergify Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

update

✅ Branch has been successfully updated

@ozelalisen

Copy link
Copy Markdown
Member

@Mergifyio queue

@mergify

mergify Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-07-29 13:20 UTC · Rule: default-squash · triggered by @ozelalisen with the @mergifyio queue command
  • ✅ Checks passed · in-place
  • ✅ Merged — 2026-07-29 14:16 UTC · at 96acf61e30e00ff09f1a9dcd039930601dc7c62f · squash

This pull request spent 55 minutes 25 seconds in the queue, including 54 minutes 55 seconds running CI.

Required conditions to merge

@gasolima gasolima added the pr-linter/exempt-readme The PR linter will not require README changes label Jul 29, 2026
@aws-cdk-automation
aws-cdk-automation dismissed their stale review July 29, 2026 13:19

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@mergify

mergify Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify

mergify Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
mergify Bot merged commit 1e55176 into aws:main Jul 29, 2026
25 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 29, 2026

This branch was successfully deployed

1 inactive deployment
automation — 96acf61e Deployed Jul 29, 2026 by mergify[bot] via validate-pr #357259
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2 pr-linter/exempt-readme The PR linter will not require README changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants