You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-24Lines changed: 59 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,21 @@
1
1
# terraform-aws-lambda-function
2
2
3
-
> Minimal Lambda function with zip packaging for provided.al2023 runtime
3
+
> Minimal Lambda function with zip packaging and container image support for provided.al2023 runtime
4
4
5
-
Terraform module that creates a Lambda function with zip packaging, IAM execution role, and CloudWatch logs. Perfect for shell scripts and custom runtimes without container overhead.
5
+
Terraform module that creates a Lambda function with zip packaging or container images, IAM execution role, and CloudWatch logs. Perfect for shell scripts and custom runtimes.
6
6
7
7
## Features
8
8
9
9
-**Zip packaging** from source directory
10
+
-**Container image** deployment from ECR
10
11
-**IAM execution role** with basic Lambda permissions
11
12
-**CloudWatch log group** with configurable retention
12
13
-**provided.al2023 runtime** optimized for shell scripts
13
14
-**CloudPosse labeling** for consistent naming
14
15
15
16
## Usage
16
17
17
-
### Basic Usage with Template Generation
18
+
### Basic Usage with Zip Packaging
18
19
19
20
```hcl
20
21
module "lambda" {
@@ -31,17 +32,42 @@ module "lambda" {
31
32
32
33
This will automatically create `bootstrap`, `handler.sh`, and `Makefile` in your `../app/src` directory.
33
34
34
-
**Note:** This module integrates seamlessly with any existing Terraform setup. The example above shows integration with CloudPosse labeling, but you can use it standalone or with any naming convention.
**Note:** This module integrates seamlessly with any existing Terraform setup. The examples above show integration with CloudPosse labeling, but you can use it standalone or with any naming convention.
0 commit comments