Skip to content

Commit

Permalink
retain a month of cloudwatch by default
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Apr 3, 2024
1 parent bea44a7 commit 56ba144
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ data "aws_iam_policy_document" "lambda_perms" {

module "apigw" {
source = "armorfret/apigw-lambda/aws"
version = "0.8.0"
version = "0.9.0"

source_bucket = var.lambda_bucket
source_version = var.lambda_version
Expand All @@ -65,4 +65,6 @@ module "apigw" {
access_policy_document = data.aws_iam_policy_document.lambda_perms.json

hostname = var.hostname

cloudwatch_retention_in_days = var.cloudwatch_retention_in_days
}
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ variable "hostname" {
description = "Hostname to use for serving site"
type = string
}

variable "cloudwatch_retention_in_days" {
description = "Days to retain cloudwatch logs"
type = number
default = 30
}

0 comments on commit 56ba144

Please sign in to comment.