File tree Expand file tree Collapse file tree
infrastructure/terraform/components/reporting Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11resource "aws_s3_bucket" "results" {
22 bucket = " ${ local . csi_global } -results"
33 force_destroy = " true"
4+
5+ tags = merge (local. default_tags , { " Enable-Backup" = false })
46}
57
68resource "aws_s3_bucket_ownership_controls" "results" {
@@ -56,48 +58,19 @@ resource "aws_s3_bucket_lifecycle_configuration" "results" {
5658 expected_bucket_owner = local. this_account
5759
5860 rule {
59- id = " default_current_version "
61+ id = " delete_all_objects_after_30_days "
6062 status = " Enabled"
6163
6264 filter {
6365 prefix = " "
6466 }
6567
66- transition {
67- days = " 90"
68- storage_class = " STANDARD_IA"
69- }
70-
71- transition {
72- days = " 180"
73- storage_class = " GLACIER"
74- }
75-
7668 expiration {
77- days = " 365"
78- }
79- }
80-
81- rule {
82- id = " default_non_current_version"
83- status = " Enabled"
84-
85- filter {
86- prefix = " "
87- }
88-
89- noncurrent_version_transition {
90- noncurrent_days = " 90"
91- storage_class = " STANDARD_IA"
92- }
93-
94- noncurrent_version_transition {
95- noncurrent_days = " 180"
96- storage_class = " GLACIER"
69+ days = " 30"
9770 }
9871
9972 noncurrent_version_expiration {
100- noncurrent_days = " 365 "
73+ noncurrent_days = " 30 "
10174 }
10275 }
10376}
You can’t perform that action at this time.
0 commit comments