{"id":23895483,"url":"https://github.com/michimani/invocation-history-extension","last_synced_at":"2026-06-15T18:31:19.137Z","repository":{"id":64258294,"uuid":"573958578","full_name":"michimani/invocation-history-extension","owner":"michimani","description":"This is a Extension for AWS Lambda Function that records history of invocation at the same runtime environment.","archived":false,"fork":false,"pushed_at":"2022-12-27T15:19:27.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T07:16:10.162Z","etag":null,"topics":["aws-lambda","golang","lambda-extensions"],"latest_commit_sha":null,"homepage":"","language":"Go","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/michimani.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG_DEV.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-04T00:46:54.000Z","updated_at":"2022-12-04T00:49:45.000Z","dependencies_parsed_at":"2023-01-15T07:01:09.581Z","dependency_job_id":null,"html_url":"https://github.com/michimani/invocation-history-extension","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/michimani/invocation-history-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michimani%2Finvocation-history-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michimani%2Finvocation-history-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michimani%2Finvocation-history-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michimani%2Finvocation-history-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michimani","download_url":"https://codeload.github.com/michimani/invocation-history-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michimani%2Finvocation-history-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34376120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws-lambda","golang","lambda-extensions"],"created_at":"2025-01-04T15:57:27.177Z","updated_at":"2026-06-15T18:31:19.121Z","avatar_url":"https://github.com/michimani.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Invocation History Extension\n===\n\n[![codecov](https://codecov.io/gh/michimani/invocation-history-extension/branch/main/graph/badge.svg?token=6TB4W4ZUJ0)](https://codecov.io/gh/michimani/invocation-history-extension)\n\nThis is a Extension for AWS Lambda Function that records history of invocation at the same runtime environment.\n\n- Records in memory the AWS Request IDs of Lambda functions invoked at the same runtime execution environment along with the time of the invocation.\n- Listen on localhost (default port: 1203) for an http server that returns a list of invocations executed up to that point.\n\n# Usage\n\n## Download or build extension's binary file\n\nFirst, prepare the binary file of the extension.  \nYou can either download it by specifying a released version, or clone this repository and build it on your end.\n\n### Download extension binary from released assets\n\nYou can obtain pre-built extensions in zip format at the following URL.\n\n```bash\nhttps://github.com/michimani/invocation-history-extension/releases/download/${EXTENSION_VERSION}/extension.zip\n```\n\nPlease click [here](https://github.com/michimani/invocation-history-extension/releases) to check the released versions.\n\n### Build extension yourself\n\nCloning this repository and executing the following command will build the extension and generate `extension.zip` under the `bin` directory.\n\n```bash\nmake build\n```\n\n## Use extension in your Lambda Function\n\nThis extension can be used in Lambda functions by deploying the extension as a Lambda Layer or by including a binary file in the container image.\n\n### As the Lambda Layer\n\nTo use this extension as a Lambda Layer, execute the following AWS CLI (v2) command to publish a Lambda Layer.\n\n```bash\naws lambda publish-layer-version \\\n--layer-name \"invocation-history-extension\" \\\n--zip-file  \"fileb://extension.zip\" \\\n--region \u003cyour region\u003e\n```\n\nThen, use the `update-function-configuration` command to specify the value of `LayerVersionArn` to the Lambda function that wants to use this extension.\n\n### Include in container image\n\nPrepare a Dockerfile like the following and place the binary files of the extension in the `/opt/extensions` directory in the image.\n\n```dockerfile\nFROM public.ecr.aws/lambda/provided:al2 as build\nENV EXTENSION_VERSION 0.1.0\nRUN yum install -y golang unzip\nRUN go env -w GOPROXY=direct\nADD go.mod go.sum ./\nRUN go mod download\nADD . .\nRUN go build -o /main\nRUN mkdir -p /opt\nADD ./extension.zip ./\nRUN unzip extension.zip -d /opt\nRUN rm extension.zip\n\nFROM public.ecr.aws/lambda/provided:al2\nCOPY --from=build /main /main\nCOPY entry.sh /\nRUN chmod 755 /entry.sh\nRUN mkdir -p /opt/extensions\nWORKDIR /opt/extensions\nCOPY --from=build /opt/extensions .\nENTRYPOINT [ \"/entry.sh\" ]\nCMD [\"/main\"]\n```\n\n# IPC (Inter-Process Communication)\n\nThis extension starts an HTTP API server on runtime, listening on `localhost:1203`. You can call `GET /invocations` to get a list of AWS Request IDs of functions invoked in the same runtime environment (including currently running ones).\n\nThe port number can be changed by setting the environment variable `INVOCATION_HISTORY_EXTENSION_HTTP_PORT` to any value. The default is `1203`.\n\nPlease see [here](https://github.com/michimani/invocation-history-extension/tree/main/docs/ipc.yaml) for API server specs.\n\n# Example for using this extension\n\nSee [_example](https://github.com/michimani/invocation-history-extension/tree/main/_example) for using this extension at the Lambda Function (Golang) using container image.\n\n# License\n\n[MIT](https://github.com/michimani/aws-lambda-api-go/blob/main/LICENSE)\n\n# Author\n\n[michimani210](https://twitter.com/michimani210)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichimani%2Finvocation-history-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichimani%2Finvocation-history-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichimani%2Finvocation-history-extension/lists"}