Skip to content

Commit

Permalink
Chore: remove fluentd s3 lifecycle_rule (#301)
Browse files Browse the repository at this point in the history
* remove lifecycle_rule

* .

* inout

---------

Co-authored-by: Tze Yang Ng <[email protected]>
  • Loading branch information
tyng94 and Tze Yang Ng authored Feb 12, 2025
1 parent 271da04 commit e5e0431
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion modules/fluentd/INOUT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| Name | Version |
|------|---------|
| aws | >= 2.42, < 4.0.0 |
| aws | >= 2.42 |
| consul | >= 2.5 |
| nomad | >= 1.4 |
| template | ~> 2.0 |
Expand Down
17 changes: 0 additions & 17 deletions modules/fluentd/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,6 @@ resource "aws_s3_bucket" "logs" {
}
}

lifecycle_rule {
id = "LogArchivalTransition"
enabled = true

abort_incomplete_multipart_upload_days = var.logs_s3_abort_incomplete_days

transition {
days = var.logs_s3_ia_transition_days
storage_class = "STANDARD_IA"
}

transition {
days = var.logs_s3_glacier_transition_days
storage_class = "GLACIER"
}
}

lifecycle {
prevent_destroy = true
}
Expand Down
2 changes: 1 addition & 1 deletion modules/fluentd/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 2.42, < 4.0.0"
version = ">= 2.42"
}

consul = {
Expand Down

0 comments on commit e5e0431

Please sign in to comment.