Skip to content

Koltin/JS Lambda example on x86 and ARM64, Infra as Code in AWS CDK in Kotlin

License

Notifications You must be signed in to change notification settings

elenavanengelenmaslova/kotlin-lambda-example-js

Repository files navigation

kotlin-lambda-example-js

Kotlin Lambda example on JS contains two CDK stacks of Kotlin Lambda: Kotlin/JS on x86, Kotlin/JS on Arm64. There is also one CDK stack for Dynamo Table. x86 and ARM64 examples were used in performance tests for "To ARM64 or not to ARM64" article: https://medium.com/aws-tip/this-week-in-kotlin-on-aws-lambda-to-arm64-or-not-to-arm64-e970f97baef3

Build & Deployment from local machine

Build kotlin app

./gradlew clean build

Set up CDK deployment

Install CDK (if you have not already):

npm install -g aws-cdk

If you have not set up CDK in you AWS account yet, please run (replace variables in brackets with actual values):

cdk bootstrap aws://[aws_account_id]/[aws_region]

Now deploy the Kotlin/JS & JS ARM64 app:

cdk deploy -vv --require-approval never --all

Build & Deployment to AWS account from GitHub

Set up the following secrets in your GitHub project:

AWS_ACCOUNT_ID
AWS_ACCESS_KEY
AWS_SECRET_KEY

Update AWS region in workflow-build-deploy.yml in .github folder of the project

About

Koltin/JS Lambda example on x86 and ARM64, Infra as Code in AWS CDK in Kotlin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published