{"id":19274110,"url":"https://github.com/sbstjn/aws-lambda-docker-node","last_synced_at":"2025-07-23T02:35:12.584Z","repository":{"id":137670618,"uuid":"316422759","full_name":"sbstjn/aws-lambda-docker-node","owner":"sbstjn","description":"Continuous Integration and Continuous Deployment setup for AWS Lambda functions with Docker images using GitHub Actions.","archived":false,"fork":false,"pushed_at":"2020-12-02T12:26:52.000Z","size":110,"stargazers_count":10,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-21T22:36:47.630Z","etag":null,"topics":["aws","cicd","container","docker","lambda","pipeline"],"latest_commit_sha":null,"homepage":"https://sbstjn.com/blog/aws-lambda-container-docker-example/","language":"Makefile","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/sbstjn.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":"2020-11-27T06:50:31.000Z","updated_at":"2023-04-06T15:56:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b8a3c6b-10a6-4748-b4e4-b6410238270a","html_url":"https://github.com/sbstjn/aws-lambda-docker-node","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/sbstjn/aws-lambda-docker-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Faws-lambda-docker-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Faws-lambda-docker-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Faws-lambda-docker-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Faws-lambda-docker-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbstjn","download_url":"https://codeload.github.com/sbstjn/aws-lambda-docker-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbstjn%2Faws-lambda-docker-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266606884,"owners_count":23955362,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","cicd","container","docker","lambda","pipeline"],"created_at":"2024-11-09T20:45:05.225Z","updated_at":"2025-07-23T02:35:12.555Z","avatar_url":"https://github.com/sbstjn.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example CI/CD for AWS Lambda w/ Docker\n\n\u003e A **Continuous Integration** and **Continuous Deployment** setup for **AWS Lambda** functions with **Docker** images using **GitHub Actions**. Together with [Semantic Releases](https://semver.org/) and [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), you can focus on writing your code. Automation takes care everything else.\n\n## Configuration\n\nYou need to configure these environment variables as GitHub secrets:\n\n- `AWS_ACCESS_KEY_ID`\n- `AWS_SECRET_ACCESS_KEY`\n- `AWS_REGION`\n- `CUSTOM_GITHUB_TOKEN`\n\n## Workflows\n\nEverything runs with [GitHub Actions](https://github.com/features/actions); a full cycle includes three _stages_:\n\n- Create n new [Semantic Release](https://github.com/marketplace/actions/action-for-semantic-release)\n- Build and public an image for every [GitHub Release](https://github.com/sbstjn/aws-lambda-docker-node/releases)\n- Update service to use new image\n\n[Read more about Event-Driven Delivery](https://sbstjn.com/blog/event-driven-delivery/).\n\n### Semantic Version\n\n\u003e on: push: branches: [\"main\"]\n\nEvery push on `main` branch triggers the [GitHub Action](https://github.com/sbstjn/aws-lambda-docker-node/actions) in [`version.yml`](.github/workflows/version.yml) to create a new [GitHub Release](https://github.com/sbstjn/aws-lambda-docker-node/releases) based on [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).\n\n### Deployment\n\n\u003e on: release: types: ['created']\n\nEvery new [GitHub Release](https://github.com/sbstjn/aws-lambda-docker-node/releases) triggers the [GitHub Action](https://github.com/sbstjn/aws-lambda-docker-node/actions) in [`deployment.yml`](.github/workflows/deployment.yml) to build the Docker image and upload the tagged image to the [Amazon Elastic Container Registry](https://aws.amazon.com/ecr/). Afterwards, a new [GitHub Deployment](https://github.com/sbstjn/aws-lambda-docker-node/deployments) is created.\n\n### Release\n\n\u003e on: deployment_status\n\nUsing [GitHub Deployments](https://github.com/sbstjn/aws-lambda-docker-node/deployments), the [GitHub Action](https://github.com/sbstjn/aws-lambda-docker-node/actions) in [`release.yml`](.github/workflows/release.yml) updates the AWS Lambda function to use the updated Docker image.\n\n## Infrastructure\n\nFirst, create a new repository using the [Amazon Elastic Container Registry](https://aws.amazon.com/ecr/). The CloudFormation template in [`infrastructure.yml`](aws/infrastructure.yml) includes all needed resources.\n\n```bash\n# Configure Amazon Elastic Container Registry\n\n$ \u003e AWS_REGION=eu-central-1 \\\n    make deploy-infrastructure\n```\n\n## Notes\n\nPer default, GitHub configures an access token for every action run. When using the default token, an action cannot trigger any other actions. Therefore, a custom GitHub Token is needed for using the GitHub API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbstjn%2Faws-lambda-docker-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbstjn%2Faws-lambda-docker-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbstjn%2Faws-lambda-docker-node/lists"}