File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
terraform/modules/archival Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ resource "aws_cloudwatch_log_group" "firehose_logs" {
2121 retention_in_days = var. LogRetentionDays
2222}
2323
24+ resource "aws_cloudwatch_log_stream" "firehose_logs_stream" {
25+ log_group_name = aws_cloudwatch_log_group. firehose_logs . name
26+ name = " DataArchivalS3Delivery"
27+ }
28+
2429
2530resource "aws_s3_bucket" "this" {
2631 bucket = " ${ var . BucketPrefix } -ddb-archive"
@@ -242,7 +247,9 @@ resource "aws_kinesis_firehose_delivery_stream" "dynamic_stream" {
242247 }
243248 }
244249 cloudwatch_logging_options {
245- enabled = true
250+ enabled = true
251+ log_group_name = aws_cloudwatch_log_group. firehose_logs . name
252+ log_stream_name = aws_cloudwatch_log_stream. firehose_logs_stream . name
246253 }
247254
248255 prefix = " resource=!{partitionKeyFromQuery:resource}/year=!{partitionKeyFromQuery:year}/month=!{partitionKeyFromQuery:month}/day=!{partitionKeyFromQuery:day}/"
You can’t perform that action at this time.
0 commit comments