{"id":16888046,"url":"https://github.com/otbe/micronaut-aws-graal-example","last_synced_at":"2026-04-13T17:31:22.298Z","repository":{"id":95956840,"uuid":"213311904","full_name":"otbe/micronaut-aws-graal-example","owner":"otbe","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-05T22:22:37.000Z","size":64,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T13:33:26.692Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otbe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-07T06:36:18.000Z","updated_at":"2024-07-24T16:34:08.000Z","dependencies_parsed_at":"2024-11-25T11:26:37.568Z","dependency_job_id":"69ebd1f6-7f20-4bb1-a382-9f2e9c21f9dd","html_url":"https://github.com/otbe/micronaut-aws-graal-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/otbe/micronaut-aws-graal-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otbe%2Fmicronaut-aws-graal-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otbe%2Fmicronaut-aws-graal-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otbe%2Fmicronaut-aws-graal-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otbe%2Fmicronaut-aws-graal-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otbe","download_url":"https://codeload.github.com/otbe/micronaut-aws-graal-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otbe%2Fmicronaut-aws-graal-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-10-13T16:48:34.740Z","updated_at":"2026-04-13T17:31:22.273Z","avatar_url":"https://github.com/otbe.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micronaut + GraalVM Native + AWS Lambda Custom Runtime \n\nThis example demonstrates how to use Micronaut AWS API Gateway Proxy support and GraalVM to construct a custom runtime that runs native images or Lambda.\n\nThe `Dockerfile` contains the build to build the native image and it can be built with:\n\n```bash\n$ docker build . -t foo\n$ mkdir -p build\n$ docker run --rm --entrypoint cat foo  /home/application/function.zip \u003e build/function.zip\n```\n\nWhich will add the function deployment ZIP file to `build/function.zip`. You can run function locally using [SAM](https://github.com/awslabs/aws-sam-cli/)\n\n```bash\n$ docker build . -t foo\n$ ./sam-local.sh\n$ curl http://localhost:3000/ping\n```\n\nOr you can deploy it to AWS via the console or CLI:\n\n```bash\naws lambda create-function --function-name foo \\\n--zip-file fileb://build/function.zip --handler function.handler --runtime provided \\\n--role ARN_OF_LAMBDA_ROLE\n```\n\nTo create role for AWS Lambda, use following code:\n```bash\n```\n\nThe function can be invoked by sending an API Gateway Proxy request. For example:\n\n```bash\naws lambda invoke --function-name foo --payload '{\"resource\": \"/{proxy+}\", \"path\": \"/ping\", \"httpMethod\": \"GET\"}' build/response.txt\ncat build/response.txt\n```\n\nand response should be something like:\n\n```json\n{\"statusCode\":200,\"multiValueHeaders\":{},\"body\":\"{\\\"pong\\\":true, \\\"graal\\\": true}\",\"isBase64Encoded\":false}\n```\n\nExample controller responding with /ping are included in template.\n\nYou should replace the `/ping` path entry with the URI the controller endpoint you wish to invoke.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotbe%2Fmicronaut-aws-graal-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotbe%2Fmicronaut-aws-graal-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotbe%2Fmicronaut-aws-graal-example/lists"}