From 807e2e1b16241326d83a096ac39d9057886fd02d Mon Sep 17 00:00:00 2001 From: Bjorn Olsen Date: Tue, 10 Dec 2024 15:54:15 +0200 Subject: [PATCH] fixup --- main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 234ffe6..427b04d 100644 --- a/main.tf +++ b/main.tf @@ -37,7 +37,8 @@ resource "aws_codebuild_project" "this" { image = local.environment_image image_pull_credentials_type = ( - startswith(local.environment_image, "aws/codebuild/") + # terraform > v1.3.0: startswith(local.environment_image, "aws/codebuild/") + length(regexall("^aws/codebuild/.*", local.environment_image)) > 0 ? "CODEBUILD" : "SERVICE_ROLE" )