From 1b08f19669db9b97b9c17f6a507c21fc541d11d3 Mon Sep 17 00:00:00 2001 From: RB <7775707+nitrocode@users.noreply.github.com> Date: Thu, 14 Nov 2024 01:52:40 -0600 Subject: [PATCH] fix: validation for contains --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 162026e..2720e70 100644 --- a/variables.tf +++ b/variables.tf @@ -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" } }