Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
baolsen committed Dec 10, 2024
1 parent 8113e44 commit 807e2e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 807e2e1

Please sign in to comment.