Skip to content

YikaiHu/lambda-public-ecr-gallery

Repository files navigation

AWS Lambda Deployment with ECR Public Gallery using CDK & CloudFormation

This repository provides the source code and automation for deploying an AWS Lambda function using an image from the ECR Public Gallery, leveraging AWS CDK and CloudFormation. It automates pulling the image from the public ECR and pushing it to a private ECR repository using CodeBuild and a CloudFormation custom resource.

For a detailed explanation of this process, check out the accompanying blog post: How to Deploy AWS Lambda with an Image from ECR Public Gallery using CDK & CloudFormation.

Architecture Diagram

The architecture for this solution involves pulling an image from the ECR Public Gallery, pushing it to a private ECR repository, and deploying an AWS Lambda function. Below is the high-level architecture diagram:

Architecture Diagram

Prerequisites

Make sure you have the following installed:

Getting Started

Step 1: Install Dependencies

npm install

Step 2: Deploy the Stack

npx cdk deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published