Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
feat(ecs): increase log group retention and prevent destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
v-stickykeys committed May 24, 2022
1 parent 0596753 commit f7e4459
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 9 additions & 0 deletions modules/ecs/cloudwatch.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "aws_cloudwatch_log_group" "ceramic" {
name = "/ecs/${local.namespace}"
retention_in_days = 1827
tags = var.default_tags

lifecycle {
prevent_destroy = true
}
}
6 changes: 0 additions & 6 deletions modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ module "ipfs" {
use_existing_peer_identity = var.use_existing_ipfs_peer_identity
}

resource "aws_cloudwatch_log_group" "ceramic" {
name = "/ecs/${local.namespace}"
retention_in_days = 400
tags = var.default_tags
}

data "aws_s3_bucket" "main" {
bucket = var.s3_bucket_name
}

0 comments on commit f7e4459

Please sign in to comment.