Skip to content

Commit 6fb1ed1

Browse files
authored
Merge pull request #906 from NHSDigital/feature/jale13-nrl-1468-update-reporting-s3-lifecycle
NRL 1468 update reporting s3 lifecycle
2 parents 3a71485 + e69b469 commit 6fb1ed1

File tree

3 files changed

+5
-22
lines changed

3 files changed

+5
-22
lines changed
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
locals {
22
s3 = {
3-
transition_storage = {
4-
infrequent_access = {
5-
storage_class = "STANDARD_IA"
6-
days = 150
7-
}
8-
glacier = {
9-
storage_class = "GLACIER"
10-
days = 200
11-
}
12-
}
13-
143
expiration = {
15-
days = 1095
4+
days = 1
165
}
176
}
187
}

terraform/account-wide-infrastructure/modules/glue/s3.tf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@ resource "aws_s3_bucket_lifecycle_configuration" "source-data-bucket-lifecycle"
5959
id = "bucket-versioning-rule"
6060
status = "Enabled"
6161

62-
transition {
63-
days = local.s3.transition_storage.infrequent_access.days
64-
storage_class = local.s3.transition_storage.infrequent_access.storage_class
65-
}
66-
transition {
67-
days = local.s3.transition_storage.glacier.days
68-
storage_class = local.s3.transition_storage.glacier.storage_class
69-
}
7062
expiration {
7163
days = local.s3.expiration.days
7264
}

terraform/infrastructure/modules/firehose/kinesis.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ resource "aws_kinesis_firehose_delivery_stream" "reporting_stream" {
6363
destination = "extended_s3"
6464

6565
extended_s3_configuration {
66-
role_arn = aws_iam_role.firehose.arn
67-
bucket_arn = var.reporting_bucket_arn
66+
role_arn = aws_iam_role.firehose.arn
67+
bucket_arn = var.reporting_bucket_arn
68+
buffering_size = 64
69+
buffering_interval = 600
6870

6971
processing_configuration {
7072
enabled = "true"

0 commit comments

Comments
 (0)