@@ -41,35 +41,6 @@ module "s3_bucket" {
4141 role = aws_iam_role.replication.arn
4242
4343 rules = [
44- {
45- id = " built-in-rule-repl1"
46- priority = 10
47- status = true
48-
49- delete_marker_replication = true
50-
51- destination = {
52- bucket = " arn:aws:s3:::${ local . replica_bucket_name } "
53- replica_kms_key_id = aws_kms_key.replica.arn
54-
55- metrics = {
56- status = " Enabled"
57- minutes = 15
58- }
59-
60- replication_time = {
61- status = " Enabled"
62- minutes = 15
63- }
64- }
65-
66- source_selection_criteria = {
67- sse_kms_encrypted_objects = {
68- enabled = true
69- }
70- }
71- },
72-
7344 {
7445 id = " custom-additional-rule" ,
7546 priority = 15 ,
@@ -92,35 +63,6 @@ module "s3_bucket" {
9263 }
9364
9465 },
95-
96- {
97- id = " built-in-rule-repl2"
98- priority = 20
99- status = true
100-
101- delete_marker_replication = true
102-
103- destination = {
104- bucket = " arn:aws:s3:::${ local . replica_bucket_name } "
105- replica_kms_key_id = aws_kms_key.replica.arn
106-
107- metrics = {
108- status = " Enabled"
109- minutes = 15
110- }
111-
112- replication_time = {
113- status = " Enabled"
114- minutes = 15
115- }
116- }
117-
118- source_selection_criteria = {
119- sse_kms_encrypted_objects = {
120- enabled = true
121- }
122- }
123- }
12466 ]
12567 }
12668
@@ -141,35 +83,6 @@ module "s3_bucket" {
14183 noncurrent_days = 35
14284 }
14385 },
144-
145- {
146- id = " log1"
147- status = " Enabled"
148-
149- abort_incomplete_multipart_upload = {
150- days_after_initiation = 7
151- }
152-
153- filter = {
154- }
155-
156- noncurrent_version_expiration = {
157- noncurrent_days = 300
158- }
159-
160- noncurrent_version_transition = {
161- noncurrent_days = 30
162- storage_class = " STANDARD_IA"
163- }
164- noncurrent_version_transition = {
165- noncurrent_days = 60
166- storage_class = " ONEZONE_IA"
167- }
168- noncurrent_version_transition = {
169- noncurrent_days = 90
170- storage_class = " GLACIER"
171- }
172- }
17386 ]
17487
17588 depends_on = [module . bucket_replica ]
0 commit comments