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 a26c70d commit bd2ea33
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 @@ -9,7 +9,7 @@ terraform {

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 @@ -27,6 +27,8 @@ module "apigw" {
binary_media_types = [
"*/*",
]

cloudwatch_retention_in_days = var.cloudwatch_retention_in_days
}

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

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

0 comments on commit bd2ea33

Please sign in to comment.