We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a441029 commit 134dd94Copy full SHA for 134dd94
outputs.tf
@@ -39,7 +39,7 @@ output "s3_bucket_id" {
39
}
40
41
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)
+ value = coalesce((length(aws_s3_bucket.bucket) > 0 ? aws_s3_bucket.bucket[0].arn : ""), (var.existing_cloudtrail != null ? var.existing_cloudtrail.s3_bucket_arn : ""))
43
44
45
output "iam_role_name" {
0 commit comments