Skip to content

(feature) add Java8AL2023, Java11AL2023 and Java17AL2023 runtime for Lambda - #38418

Closed
Stefan9283 wants to merge 1 commit into
aws:mainfrom
Stefan9283:main
Closed

(feature) add Java8AL2023, Java11AL2023 and Java17AL2023 runtime for Lambda#38418
Stefan9283 wants to merge 1 commit into
aws:mainfrom
Stefan9283:main

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 p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Jul 27, 2026
@aws-cdk-automation
aws-cdk-automation requested a review from a team July 27, 2026 16:55
@github-actions

Copy link
Copy Markdown
Contributor

👋 It looks like your PR description follows the template but is missing a valid issue number in the first section.

PRs without a linked issue will receive lower priority for review and merging. Please update the description to include a reference like Closes #123. If no existing issue matches your change, create one first.

@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.

The pull request linter fails with the following errors:

❌ The title prefix of this pull request must be one of "feat|fix|build|chore|ci|docs|style|refactor|perf|test|revert"
❌ Pull requests from `main` branch of a fork cannot be accepted. Please reopen this contribution from another branch on your fork. For more information, see https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md#step-4-pull-request.

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

@aws-cdk-automation

Copy link
Copy Markdown
Collaborator

Your pull request must be based off of a branch in a personal account (not an organization owned account, and not the main branch). You must also have the setting enabled that allows the CDK team to push changes to your branch (this setting is enabled by default for personal accounts, and cannot be enabled for organization owned accounts). The reason for this is that our automation needs to synchronize your branch with our main after it has been approved, and we cannot do that if we cannot push to your branch.

@github-actions

Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 27, 2026
@aws-cdk-automation

Copy link
Copy Markdown
Collaborator

Your pull request must be based off of a branch in a personal account (not an organization owned account, and not the main branch). You must also have the setting enabled that allows the CDK team to push changes to your branch (this setting is enabled by default for personal accounts, and cannot be enabled for organization owned accounts). The reason for this is that our automation needs to synchronize your branch with our main after it has been approved, and we cannot do that if we cannot push to your branch.

@aws-cdk-automation

Copy link
Copy Markdown
Collaborator

Your pull request must be based off of a branch in a personal account (not an organization owned account, and not the main branch). You must also have the setting enabled that allows the CDK team to push changes to your branch (this setting is enabled by default for personal accounts, and cannot be enabled for organization owned accounts). The reason for this is that our automation needs to synchronize your branch with our main after it has been approved, and we cannot do that if we cannot push to your branch.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants