Skip to content

Commit 134dd94

Browse files
author
Michael Chmielewski
committed
Found a second place without null checking
1 parent a441029 commit 134dd94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ output "s3_bucket_id" {
3939
}
4040

4141
output "s3_bucket_arn" {
42-
value = coalesce((length(aws_s3_bucket.bucket) > 0 ? aws_s3_bucket.bucket[0].arn : ""), var.existing_cloudtrail.s3_bucket_arn)
42+
value = coalesce((length(aws_s3_bucket.bucket) > 0 ? aws_s3_bucket.bucket[0].arn : ""), (var.existing_cloudtrail != null ? var.existing_cloudtrail.s3_bucket_arn : ""))
4343
}
4444

4545
output "iam_role_name" {

0 commit comments

Comments
 (0)