Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: remove fluentd s3 lifecycle_rule #301

Merged
merged 3 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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