Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down