Skip to content

Commit 14f6259

Browse files
authored
Merge pull request #46 from byu-oit/feat/logretention
Feat/logretention
2 parents 6ba1919 + 71d9390 commit 14f6259

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Also Note: CodePipeline and CodeDeploy cannot be used together to deploy a Lambd
2727
For a Zip file lambda
2828
```hcl
2929
module "lambda_api" {
30-
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v3.0.1"
30+
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v4.1.0"
3131
app_name = "my-lambda-codedeploy-dev"
3232
zip_filename = "./src/lambda.zip"
3333
zip_handler = "index.handler"
@@ -50,7 +50,7 @@ module "lambda_api" {
5050
For a docker image lambda:
5151
```hcl
5252
module "lambda_api" {
53-
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v3.0.1"
53+
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v4.1.0"
5454
app_name = "my-docker-lambda"
5555
image_uri = "my-image-from-my-ecr:latest"
5656
hosted_zone = module.acs.route53_zone
@@ -109,7 +109,7 @@ module "lambda_api" {
109109
| public_subnet_ids | list(string) | List of subnet IDs for the ALB. | |
110110
| tags | map(string) | A map of AWS Tags to attach to each resource created | {} |
111111
| role_permissions_boundary_arn | string | IAM Role Permissions Boundary ARN | |
112-
| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 7. | 7 |
112+
| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 120. | 120 |
113113
| lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. | [] |
114114
| lambda_layers | list(string) | List of Lambda Layer Version ARNs (maximum of 5) to attach to your function. | [] |
115115
| timeout | number | How long the lambda will run (in seconds) before timing out | 3 (same as terraform default) |

examples/docker-lambda/docker.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module "acs" {
99

1010
module "lambda_api" {
1111
# source = "../../"
12-
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v3.0.1"
12+
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v4.1.0"
1313
app_name = "my-docker-lambda"
1414
image_uri = "my-image-from-my-ecr:latest"
1515
hosted_zone = module.acs.route53_zone

examples/simple-lambda-in-vpc/example.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module "acs" {
99

1010
module "lambda_api" {
1111
# source = "../../"
12-
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v3.0.1"
12+
source = "github.com/byu-oit/terraform-aws-lambda-api?ref=v4.1.0"
1313
app_name = "my-lambda-dev"
1414
zip_filename = "./src/lambda.zip"
1515
zip_handler = "index.handler"

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ variable "role_permissions_boundary_arn" {
114114

115115
variable "log_retention_in_days" {
116116
type = number
117-
description = "CloudWatch log group retention in days. Defaults to 7."
118-
default = 7
117+
description = "CloudWatch log group retention in days. Defaults to 120."
118+
default = 120
119119
}
120120

121121
variable "lambda_policies" {

0 commit comments

Comments
 (0)