Skip to content

Commit

Permalink
Enable module.bucket_name if var.bucket_name is null
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-hg committed Apr 29, 2024
1 parent 4082294 commit fb07687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module "bucket_name" {
source = "cloudposse/label/null"
version = "0.25.0"

enabled = local.enabled && try(length(var.bucket_name) == 0, false)
enabled = local.enabled && try(length(var.bucket_name) == 0, true)

id_length_limit = 63 # https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html

Expand Down

0 comments on commit fb07687

Please sign in to comment.