diff --git a/public/images/aws/lambda-ecr-container-images.png b/public/images/aws/lambda-ecr-container-images.png new file mode 100644 index 00000000..2183b8f4 Binary files /dev/null and b/public/images/aws/lambda-ecr-container-images.png differ diff --git a/src/content/docs/aws/tutorials/lambda-ecr-container-images.mdx b/src/content/docs/aws/tutorials/lambda-ecr-container-images.mdx index 36c735b0..f79dd35e 100644 --- a/src/content/docs/aws/tutorials/lambda-ecr-container-images.mdx +++ b/src/content/docs/aws/tutorials/lambda-ecr-container-images.mdx @@ -32,11 +32,16 @@ In this tutorial, we will explore creating a Lambda function using a container i Before diving into this tutorial, make sure you have the following prerequisites: -- LocalStack Pro +- [LocalStack Pro](https://localstack.cloud/pricing/) - [awslocal](/aws/integrations/aws-native-tools/aws-cli#localstack-aws-cli-awslocal) - [Python](https://www.python.org/downloads/) - [Docker](https://docker.io/) +## Architecture Diagram + +The following diagram shows the architecture that we are going to follow : + +![lambda-ecr-container-images-architecture](/images/aws/lambda-ecr-container-images.png) ## Creating a Lambda function To package and deploy a Lambda function as a container image, we'll create a Lambda function containing our code and a Dockerfile. @@ -243,6 +248,8 @@ Here's an explanation of each flag: In the example, a mock role ARN is used. For an actual role, please refer to the [IAM documentation](/aws/services/iam). +## Testing the application + To invoke the Lambda function, you can use the `invoke` command: ```bash