From 3ee91066311cc12c6b27a499485a4dfadb929ccd Mon Sep 17 00:00:00 2001 From: Jorge Falcon <22119513+BCTBB@users.noreply.github.com> Date: Thu, 4 Sep 2025 18:46:35 -0400 Subject: [PATCH] Force destroy support for firehose log destination (#104) - Added `force_destroy = true` to firehose log destination s3 buckets --- addons/logging-destination-firehose/main.tf | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/addons/logging-destination-firehose/main.tf b/addons/logging-destination-firehose/main.tf index 17a9ac4..430bd71 100644 --- a/addons/logging-destination-firehose/main.tf +++ b/addons/logging-destination-firehose/main.tf @@ -8,7 +8,8 @@ data "aws_region" "current" {} resource "aws_s3_bucket" "osquery-results" { #tfsec:ignore:aws-s3-encryption-customer-key:exp:2022-07-01 #tfsec:ignore:aws-s3-enable-versioning #tfsec:ignore:aws-s3-enable-bucket-logging:exp:2022-06-15 - bucket = var.osquery_results_s3_bucket.name + bucket = var.osquery_results_s3_bucket.name + force_destroy = true } resource "aws_s3_bucket_lifecycle_configuration" "osquery-results" { @@ -47,7 +48,8 @@ resource "aws_s3_bucket_public_access_block" "osquery-results" { // organizations deploying Fleet, and we will evaluate the possibility of providing this capability // in the future. resource "aws_s3_bucket" "osquery-status" { #tfsec:ignore:aws-s3-encryption-customer-key:exp:2022-07-01 #tfsec:ignore:aws-s3-enable-versioning #tfsec:ignore:aws-s3-enable-bucket-logging:exp:2022-06-15 - bucket = var.osquery_status_s3_bucket.name + bucket = var.osquery_status_s3_bucket.name + force_destroy = true } resource "aws_s3_bucket_lifecycle_configuration" "osquery-status" { @@ -86,7 +88,8 @@ resource "aws_s3_bucket_public_access_block" "osquery-status" { // organizations deploying Fleet, and we will evaluate the possibility of providing this capability // in the future. resource "aws_s3_bucket" "audit" { #tfsec:ignore:aws-s3-encryption-customer-key:exp:2022-07-01 #tfsec:ignore:aws-s3-enable-versioning #tfsec:ignore:aws-s3-enable-bucket-logging:exp:2022-06-15 - bucket = var.audit_s3_bucket.name + bucket = var.audit_s3_bucket.name + force_destroy = true } resource "aws_s3_bucket_lifecycle_configuration" "audit" {