AWS Lambda to Amazon Elastic Container Service

AWS Lambda → Elastic Container Service

Terraform IaC template to provision Amazon Elastic Container Registry (ECR) resources to integrate with AWS Lambda.

This pattern involves the provisioning of Amazon Elastic Container Registry (ECR) and the creation of a container. It also includes the configuration of AWS Lambda to invoke the container. Within the created container, there is an illustrative bash script, demonstrating how to modernize existing bash code with minimal changes.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/terraform-lambda-ecr-integration

Deploy

terraform initterraform planterraform apply


Testing

See the README in the GitHub repo for detailed testing instructions.

Cleanup

terraform destroy
terraform show

Created by:

Nitin Jain

Sr Solution Architect, AWS

Follow on LinkedIn