Skip to content

Commit

Permalink
fix: validation for contains
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode authored Nov 14, 2024
1 parent 378d25d commit 1b08f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ variable "s3_request_payment_configuration" {
payer = "BucketOwner"
}
validation {
condition = !contains(["bucketowner", "requester"], lower(var.s3_request_payment_configuration.payer))
condition = contains(["bucketowner", "requester"], lower(var.s3_request_payment_configuration.payer))
error_message = "The s3 request payment config's payer must be either BucketOwner or Requester"
}
}
Expand Down

0 comments on commit 1b08f19

Please sign in to comment.