From b89bb89c36746f5dead86b82490ace173adda354 Mon Sep 17 00:00:00 2001 From: Daniel Morris Date: Wed, 28 Jun 2023 12:42:08 +0100 Subject: [PATCH] fix: Reduce the allowed additional_thumbprints (#31) --- examples/complete/variables.tf | 4 ++-- variables.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 219a9c1..96c8fd1 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -4,8 +4,8 @@ variable "additional_thumbprints" { type = list(string) validation { - condition = var.additional_thumbprints == null ? true : length(var.additional_thumbprints) <= 4 - error_message = "Only 4 additional thumbprints can be set, for a maximum of 5 in the OIDC provider." + condition = var.additional_thumbprints == null ? true : length(var.additional_thumbprints) <= 3 + error_message = "Only 3 additional thumbprints can be set, for a maximum of 5 in the OIDC provider." } } diff --git a/variables.tf b/variables.tf index ffca52c..bba0891 100644 --- a/variables.tf +++ b/variables.tf @@ -18,8 +18,8 @@ variable "additional_thumbprints" { type = list(string) validation { - condition = var.additional_thumbprints == null ? true : length(var.additional_thumbprints) <= 4 - error_message = "Only 4 additional thumbprints can be set, for a maximum of 5 in the OIDC provider." + condition = var.additional_thumbprints == null ? true : length(var.additional_thumbprints) <= 3 + error_message = "Only 3 additional thumbprints can be set, for a maximum of 5 in the OIDC provider." } }