Commit 1e55176
authored
### 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](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Runtime.html#initializer)
### 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 #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
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent b8e7c11 commit 1e55176
14 files changed
Lines changed: 4566 additions & 7161 deletions
File tree
- packages
- @aws-cdk-testing/framework-integ/test/aws-lambda/test
- integ.runtime.fromasset.js.snapshot
- asset.6ffc47b88143a52aa50e26c31da776854b28dff0e45b1a97d7c1e530d59590ad.bundle
- aws-cdk-lib/aws-lambda/lib
Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 122 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments