Skip to content

Feat/logretention #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 30, 2025
Merged
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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Also Note: CodePipeline and CodeDeploy cannot be used together to deploy a Lambd
For a Zip file lambda
```hcl
module "lambda_api" {
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v3.0.1"
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v4.1.0"
app_name = "my-lambda-codedeploy-dev"
zip_filename = "./src/lambda.zip"
zip_handler = "index.handler"
Expand All @@ -50,7 +50,7 @@ module "lambda_api" {
For a docker image lambda:
```hcl
module "lambda_api" {
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v3.0.1"
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v4.1.0"
app_name = "my-docker-lambda"
image_uri = "my-image-from-my-ecr:latest"
hosted_zone = module.acs.route53_zone
Expand Down Expand Up @@ -109,7 +109,7 @@ module "lambda_api" {
| public_subnet_ids | list(string) | List of subnet IDs for the ALB. | |
| tags | map(string) | A map of AWS Tags to attach to each resource created | {} |
| role_permissions_boundary_arn | string | IAM Role Permissions Boundary ARN | |
| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 7. | 7 |
| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 120. | 120 |
| lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. | [] |
| lambda_layers | list(string) | List of Lambda Layer Version ARNs (maximum of 5) to attach to your function. | [] |
| timeout | number | How long the lambda will run (in seconds) before timing out | 3 (same as terraform default) |
Expand Down
2 changes: 1 addition & 1 deletion examples/docker-lambda/docker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module "acs" {

module "lambda_api" {
# source = "../../"
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v3.0.1"
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v4.1.0"
app_name = "my-docker-lambda"
image_uri = "my-image-from-my-ecr:latest"
hosted_zone = module.acs.route53_zone
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-lambda-in-vpc/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module "acs" {

module "lambda_api" {
# source = "../../"
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v3.0.1"
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v4.1.0"
app_name = "my-lambda-dev"
zip_filename = "./src/lambda.zip"
zip_handler = "index.handler"
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ variable "role_permissions_boundary_arn" {

variable "log_retention_in_days" {
type = number
description = "CloudWatch log group retention in days. Defaults to 7."
default = 7
description = "CloudWatch log group retention in days. Defaults to 120."
default = 120
}

variable "lambda_policies" {
Expand Down
Loading