Adding force destroy = true to software installers bucket resource block (#52)

Adding `force_destroy = true` to allow for the removal of software
installers bucket when terraform attempts to destroy the s3 bucket.
This commit is contained in:
Jorge Falcon authored and GitHub committed 2025-05-27 15:06:55 -04:00
1 parent a73a4f5553
commit 770afe9cd3
3 files changed
+5 -2

No files matched your search

+3
View File
@@ -296,6 +296,9 @@ resource "aws_s3_bucket" "software_installers" { #tfsec:ignore:aws-s3-encryption
bucket = var.fleet_config.software_installers.bucket_name
bucket_prefix = var.fleet_config.software_installers.bucket_prefix
tags = var.fleet_config.software_installers.tags
# Allow destroy of non-empty buckets
force_destroy = true
}
resource "aws_s3_bucket_versioning" "software_installers" {
+1 -1
View File
@@ -92,7 +92,7 @@ module "vpc" {
}
module "byo-vpc" {
source = "github.com/fleetdm/fleet-terraform//byo-vpc?depth=1&ref=tf-mod-byo-vpc-v1.17.0"
source = "github.com/fleetdm/fleet-terraform//byo-vpc?depth=1&ref=tf-mod-byo-vpc-v1.17.1"
vpc_config = {
vpc_id = module.vpc.vpc_id
networking = {
+1 -1
View File
@@ -52,7 +52,7 @@ locals {
}
module "fleet" {
source = "github.com/fleetdm/fleet-terraform?depth=1&ref=tf-mod-root-v1.15.1"
source = "github.com/fleetdm/fleet-terraform?depth=1&ref=tf-mod-root-v1.15.2"
certificate_arn = module.acm.acm_certificate_arn
vpc = {