From ef5974215f64a4ea291a0ea4206cb90ec54de6f8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 17 Mar 2026 14:01:55 -0400 Subject: [PATCH] fix(buildspec): flatten multi-line curl commands to single lines YAML sequence items cannot span multiple lines without a block scalar. The split curl commands were parsed as invalid mappings at line 44. --- codebuild/buildspec.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/codebuild/buildspec.yml b/codebuild/buildspec.yml index 0beb0a5..4399f34 100644 --- a/codebuild/buildspec.yml +++ b/codebuild/buildspec.yml @@ -33,17 +33,14 @@ phases: commands: # ── Install terraform ──────────────────────────────────────────────── - echo "Installing terraform ${TF_VERSION}..." - - curl -sLo /tmp/tf.zip - "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip" + - curl -sLo /tmp/tf.zip "https://releases.hashicorp.com/terraform/${TF_VERSION}/terraform_${TF_VERSION}_linux_amd64.zip" - unzip -q /tmp/tf.zip -d /usr/local/bin && rm /tmp/tf.zip - terraform version # ── Install tf wrapper script from team gist ───────────────────────── # GITHUB_TOKEN is already in the environment (injected from Secrets Manager). - echo "Downloading tf script from gist..." - - curl -sLo /usr/local/bin/tf - -H "Authorization: token $GITHUB_TOKEN" - "$TF_GIST_URL" + - curl -sLo /usr/local/bin/tf -H "Authorization: token $GITHUB_TOKEN" "$TF_GIST_URL" - chmod +x /usr/local/bin/tf - tf --version