@@ -262,10 +262,10 @@ resource "aws_kinesis_firehose_delivery_stream" "main" {
262
262
name = " ${ var . prefix } -datadog-metric-stream"
263
263
destination = " http_endpoint"
264
264
265
- s3_configuration {
265
+ extended_s3_configuration {
266
266
bucket_arn = aws_s3_bucket. main . arn
267
- buffer_size = 4
268
- buffer_interval = 60
267
+ buffering_size = 4
268
+ buffering_interval = 60
269
269
compression_format = " GZIP"
270
270
role_arn = module. firehose_role . arn
271
271
error_output_prefix = " datadog-stream"
@@ -287,15 +287,23 @@ resource "aws_kinesis_firehose_delivery_stream" "main" {
287
287
s3_backup_mode = " FailedDataOnly"
288
288
role_arn = module. firehose_role . arn
289
289
290
- request_configuration {
291
- content_encoding = " GZIP"
292
- }
293
-
294
290
cloudwatch_logging_options {
295
291
enabled = true
296
292
log_group_name = aws_cloudwatch_log_group. main . name
297
293
log_stream_name = aws_cloudwatch_log_stream. http_endpoint . name
298
294
}
295
+
296
+ request_configuration {
297
+ content_encoding = " GZIP"
298
+ }
299
+
300
+ s3_configuration {
301
+ role_arn = module. firehose_role . arn
302
+ bucket_arn = aws_s3_bucket. main . arn
303
+ buffering_size = 10
304
+ buffering_interval = 400
305
+ compression_format = " GZIP"
306
+ }
299
307
}
300
308
301
309
server_side_encryption {
@@ -335,11 +343,6 @@ resource "aws_s3_bucket" "main" {
335
343
tags = var. tags
336
344
}
337
345
338
- resource "aws_s3_bucket_acl" "main" {
339
- bucket = aws_s3_bucket. main . id
340
- acl = " private"
341
- }
342
-
343
346
resource "aws_s3_bucket_public_access_block" "main" {
344
347
bucket = aws_s3_bucket. main . id
345
348
0 commit comments