{"id":25400602,"url":"https://github.com/elenavanengelenmaslova/kotlin-lambda-example-jvm","last_synced_at":"2025-10-30T22:31:08.721Z","repository":{"id":61529361,"uuid":"545624142","full_name":"elenavanengelenmaslova/kotlin-lambda-example-jvm","owner":"elenavanengelenmaslova","description":"Kotlin/JVM Lambda examples on x86 and ARM64 with and without C1 compiler optimisation, Infra as Code in AWS CDK in Kotlin","archived":false,"fork":false,"pushed_at":"2024-02-04T10:55:02.000Z","size":385,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-28T01:33:50.326Z","etag":null,"topics":["arm64","aws","aws-lambda","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elenavanengelenmaslova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-10-04T17:44:39.000Z","updated_at":"2024-04-28T01:33:50.327Z","dependencies_parsed_at":"2024-01-18T12:55:21.804Z","dependency_job_id":null,"html_url":"https://github.com/elenavanengelenmaslova/kotlin-lambda-example-jvm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenavanengelenmaslova%2Fkotlin-lambda-example-jvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenavanengelenmaslova%2Fkotlin-lambda-example-jvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenavanengelenmaslova%2Fkotlin-lambda-example-jvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elenavanengelenmaslova%2Fkotlin-lambda-example-jvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elenavanengelenmaslova","download_url":"https://codeload.github.com/elenavanengelenmaslova/kotlin-lambda-example-jvm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239070927,"owners_count":19576631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arm64","aws","aws-lambda","kotlin"],"created_at":"2025-02-16T00:18:42.858Z","updated_at":"2025-10-30T22:31:08.208Z","avatar_url":"https://github.com/elenavanengelenmaslova.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kotlin-lambda-example-jvm\nKotlin Lambda example on JVM contains six CDK stacks of Kotlin Lambda on JVM: JVM on x86, JVM on Arm64, JVM with C1 compiler on x86, JVM with C1 compiler on Arm64, JVM with SnapStart on x86, JVM with SnapStart and C1 compiler on x86, and one 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\n\n## Build \u0026 Deployment from local machine\n### Build kotlin app\nUnit tests are using Testcontainers to run DynamoDB locally. \nEnsure docker is running locally, then execute:\n```\n./gradlew clean build\n```\n### Set up CDK deployment\n\nInstall CDK (if you have not already):\n```\nnpm install -g aws-cdk\n```\n\nIf you have not set up CDK in you AWS account yet, please run (replace variables in brackets with actual values):\n```\ncdk bootstrap aws://[aws_account_id]/[aws_region]\n```\n\nNow deploy all stacks:\n```\ncdk deploy -vv --require-approval never --all\n```\n\n## Build \u0026 Deployment to AWS account from GitHub\nSet up the following secrets in your GitHub project:\n```\nAWS_ACCOUNT_ID\nAWS_ACCESS_KEY\nAWS_SECRET_KEY\n```\nUpdate AWS region in `workflow-build-deploy.yml` in `.github` folder of the project\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenavanengelenmaslova%2Fkotlin-lambda-example-jvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felenavanengelenmaslova%2Fkotlin-lambda-example-jvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenavanengelenmaslova%2Fkotlin-lambda-example-jvm/lists"}