Skip to content

Commit

Permalink
Merge pull request #4397 from praneesha/rename-aws-execution-context-bbe
Browse files Browse the repository at this point in the history
Rename the AWS Lambda execution context BBE
  • Loading branch information
praneesha authored May 7, 2023
2 parents ba55951 + 9dc03a5 commit 0b9b664
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion examples/aws-lambda-context-execution/bal_new.out

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Execute the command below to create a new Ballerina package.

Replace the content of the generated Ballerina file with the content below.

::: code aws-lambda-context-execution.bal :::
::: code aws-lambda-execution-context.bal :::

## Build the Ballerina program

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
$ aws lambda create-function --function-name ctxinfo --zip-file fileb://aws-ballerina-lambda-functions.zip --handler aws-lambda-context-execution.ctxinfo --runtime provided --role arn:aws:iam::908363916111:role/lambda-role --layers arn:aws:lambda:us-west-1:134633749276:layer:ballerina-jre11:6 --memory-size 512 --timeout 10
$ aws lambda create-function --function-name ctxinfo --zip-file fileb://aws-ballerina-lambda-functions.zip --handler aws-lambda-execution-context.ctxinfo --runtime provided --role arn:aws:iam::908363916111:role/lambda-role --layers arn:aws:lambda:us-west-1:134633749276:layer:ballerina-jre11:6 --memory-size 512 --timeout 10
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
$ bal build
Compiling source
wso2/aws-lambda-context-execution:0.1.0
wso2/aws-lambda-execution-context:0.1.0

Generating executable
@awslambda:Function: ctxinfo

Run the following command to deploy each Ballerina AWS Lambda function:
aws lambda create-function --function-name $FUNCTION_NAME --zip-file fileb://<project-dir>/aws-lambda-context-execution/target/bin/aws-ballerina-lambda-functions.zip --handler aws_lambda_deployment.$FUNCTION_NAME --runtime provided --role $LAMBDA_ROLE_ARN --layers arn:aws:lambda:$REGION_ID:134633749276:layer:ballerina-jre11:6 --memory-size 512 --timeout 10
aws lambda create-function --function-name $FUNCTION_NAME --zip-file fileb://<project-dir>/aws-lambda-execution-context/target/bin/aws-ballerina-lambda-functions.zip --handler aws_lambda_deployment.$FUNCTION_NAME --runtime provided --role $LAMBDA_ROLE_ARN --layers arn:aws:lambda:$REGION_ID:134633749276:layer:ballerina-jre11:6 --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
1 change: 1 addition & 0 deletions examples/aws-lambda-execution-context/bal_new.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$ bal new aws-lambda-execution-context
4 changes: 2 additions & 2 deletions examples/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -4359,8 +4359,8 @@
"isLearnByExample": false
},
{
"name": "Context execution",
"url": "aws-lambda-context-execution",
"name": "Execution context",
"url": "aws-lambda-execution-context",
"verifyBuild": false,
"verifyOutput": false,
"disableVerificationReason": "Needs prerequisite condition",
Expand Down

0 comments on commit 0b9b664

Please sign in to comment.