diff --git a/modules/cloudtrail/outputs.tf b/modules/cloudtrail/outputs.tf index 7568969b2..a02e0ce65 100644 --- a/modules/cloudtrail/outputs.tf +++ b/modules/cloudtrail/outputs.tf @@ -19,6 +19,6 @@ output "cloudtrail_arn" { } output "force_destroy_warning" { - value = "WARNING: The S3 bucket is configured to be forcefully destroyed." - condition = var.force_destroy + description = "Warning message if force_destroy is enabled" + value = var.force_destroy ? "WARNING: The S3 bucket is configured to be forcefully destroyed." : null }