Force destroy support for firehose log destination (#104)

- Added `force_destroy = true` to firehose log destination s3 buckets
This commit is contained in:
Jorge Falcon authored and GitHub committed 2025-09-04 18:46:35 -04:00
1 parent adac81defa
commit 3ee9106631
1 file changed
+6 -3
+6 -3
View File
@@ -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" {