Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e17a719

Browse files
committedDec 4, 2022
equality check
1 parent 00cfb94 commit e17a719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ locals {
2828
}
2929

3030
resource "aws_s3_bucket" "bucket" {
31-
bucket = var.bucket_name_random_suffix ? null : var.bucket_name_prefix
32-
bucket_prefix = var.bucket_name_random_suffix ? var.bucket_name_prefix : null
31+
bucket = var.bucket_name_random_suffix == true ? null : var.bucket_name_prefix
32+
bucket_prefix = var.bucket_name_random_suffix == true ? var.bucket_name_prefix : null
3333
acl = "private"
3434

3535
versioning {

0 commit comments

Comments
 (0)
Please sign in to comment.