diff --git a/.github/workflows/add_reason_labels.yml b/.github/workflows/add_reason_labels.yml
deleted file mode 100644
index 07cb60e..0000000
--- a/.github/workflows/add_reason_labels.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-on:
- issues:
- types: [closed]
-jobs:
- check-resolution-label:
- runs-on: ubuntu-latest
- if:
- ${{ contains(github.event.issue.labels.*.name, 'Type/Bug') && !(contains(github.event.issue.labels.*.name, 'Reason/EngineeringMistake') ||
- contains(github.event.issue.labels.*.name, 'Reason/Complex') ||
- contains(github.event.issue.labels.*.name, 'Reason/Regression') ||
- contains(github.event.issue.labels.*.name, 'Reason/Other') ||
- contains(github.event.issue.labels.*.name, 'Reason/Invalid') ||
- contains(github.event.issue.labels.*.name, 'Reason/MultipleComponentInteraction')) }}
- steps:
- - run: echo Resolution label is not set
- - run: gh issue comment $ISSUE --body "This issue is **NOT** closed with a proper **Reason/** label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.
- **Reason/EngineeringMistake** - The issue occurred due to a mistake made in the past.
- **Reason/Regression** - The issue has introduced a regression.
- **Reason/MultipleComponentInteraction** - Issue occured due to interactions in multiple components.
- **Reason/Complex** - Issue occurred due to complex scenario.
- **Reason/Invalid** - Issue is invalid.
- **Reason/Other** - None of the above cases."
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- ISSUE: ${{ github.event.issue.html_url }}
diff --git a/.github/workflows/update-layer.yml b/.github/workflows/update-layer.yml
index cb134da..f29741e 100644
--- a/.github/workflows/update-layer.yml
+++ b/.github/workflows/update-layer.yml
@@ -21,10 +21,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS credentials
- uses: aws-actions/configure-aws-credentials@v1
+ uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
aws-region: ${{ matrix.region }}
- name: Setup and Upload lambda Layer
id: setup
diff --git a/README.md b/README.md
index db89924..27c76ef 100644
--- a/README.md
+++ b/README.md
@@ -86,7 +86,7 @@ Generating executables
@aws.lambda:Function: echo, uuid, ctxinfo, notifySQS, notifyS3, notifyDynamoDB, notifySES, apigwRequest
Run the following command to deploy each Ballerina AWS Lambda function:
- aws lambda create-function --function-name --zip-file fileb://aws-ballerina-lambda-functions.zip --handler functions. --runtime provided --role --layers arn:aws:lambda::134633749276:layer:ballerina-jre17:1
+ aws lambda create-function --function-name --zip-file fileb://aws-ballerina-lambda-functions.zip --handler functions. --runtime provided --role --layers arn:aws:lambda::367134611783:layer:ballerina-jre21:1
Run the following command to re-deploy an updated Ballerina AWS Lambda function:
aws lambda update-function-code --function-name --zip-file fileb://aws-ballerina-lambda-functions.zip
diff --git a/ballerina/Module.md b/ballerina/Module.md
index a622d14..e087835 100644
--- a/ballerina/Module.md
+++ b/ballerina/Module.md
@@ -77,7 +77,7 @@ Generating executable
@aws.lambda:Function: echo, uuid, ctxinfo, notifySQS, notifyS3
Run the following command to deploy each Ballerina AWS Lambda function:
- aws lambda create-function --function-name $FUNCTION_NAME --zip-file fileb://aws-ballerina-lambda-functions.zip --handler functions.$FUNCTION_NAME --runtime provided --role $LAMBDA_ROLE_ARN --layers arn:aws:lambda:$REGION_ID:134633749276:layer:ballerina-jre17:1 --memory-size 512 --timeout 10
+ aws lambda create-function --function-name $FUNCTION_NAME --zip-file fileb://aws-ballerina-lambda-functions.zip --handler functions.$FUNCTION_NAME --runtime provided --role $LAMBDA_ROLE_ARN --layers arn:aws:lambda:$REGION_ID:367134611783:layer:ballerina-jre21:1 --memory-size 512 --timeout 10
Run the following command to re-deploy an updated Ballerina AWS Lambda function:
aws lambda update-function-code --function-name $FUNCTION_NAME --zip-file fileb://aws-ballerina-lambda-functions.zip
diff --git a/compiler-plugin-tests/src/test/resources/deployment/template.yml b/compiler-plugin-tests/src/test/resources/deployment/template.yml
index 6fcc9af..ec71bc2 100644
--- a/compiler-plugin-tests/src/test/resources/deployment/template.yml
+++ b/compiler-plugin-tests/src/test/resources/deployment/template.yml
@@ -12,7 +12,7 @@ Resources:
CodeUri: aws-ballerina-lambda-functions.zip
Handler: functions.echo
Layers:
- - arn:aws:lambda:us-west-1:134633749276:layer:ballerina-jre17:1
+ - arn:aws:lambda:us-west-1:367134611783:layer:ballerina-jre21:1
UUIDFunction:
Type: AWS::Serverless::Function
Properties:
@@ -20,7 +20,7 @@ Resources:
CodeUri: aws-ballerina-lambda-functions.zip
Handler: functions.uuid
Layers:
- - arn:aws:lambda:us-west-1:134633749276:layer:ballerina-jre17:1
+ - arn:aws:lambda:us-west-1:367134611783:layer:ballerina-jre21:1
CtxInfoFunction:
Type: AWS::Serverless::Function
Properties:
@@ -28,4 +28,4 @@ Resources:
CodeUri: aws-ballerina-lambda-functions.zip
Handler: functions.ctxinfo
Layers:
- - arn:aws:lambda:us-west-1:134633749276:layer:ballerina-jre17:1
+ - arn:aws:lambda:us-west-1:367134611783:layer:ballerina-jre21:1
diff --git a/compiler-plugin/src/main/java/org/ballerinax/aws/lambda/generator/tasks/LambdaCodeGeneratedTask.java b/compiler-plugin/src/main/java/org/ballerinax/aws/lambda/generator/tasks/LambdaCodeGeneratedTask.java
index 209a7c6..031602e 100644
--- a/compiler-plugin/src/main/java/org/ballerinax/aws/lambda/generator/tasks/LambdaCodeGeneratedTask.java
+++ b/compiler-plugin/src/main/java/org/ballerinax/aws/lambda/generator/tasks/LambdaCodeGeneratedTask.java
@@ -87,7 +87,7 @@ public void perform(CompilerLifecycleEventContext lifecycleEventContext) {
String version = getResourceFileAsString("layer-version.txt");
String fileName = executablePath.getFileName().toString();
String balxName = fileName.substring(0, fileName.lastIndexOf('.'));
- String layer = " --layers arn:aws:lambda:$REGION_ID:134633749276:layer:ballerina-jre21:" + version;
+ String layer = " --layers arn:aws:lambda:$REGION_ID:367134611783:layer:ballerina-jre21:" + version;
if (isNative) {
layer = "";
}