Skip to content

Commit

Permalink
fix(buildspec): flatten multi-line curl commands to single lines
Browse files Browse the repository at this point in the history
YAML sequence items cannot span multiple lines without a block scalar.
The split curl commands were parsed as invalid mappings at line 44.
  • Loading branch information
Your Name committed Mar 17, 2026
1 parent 8c64a99 commit ef59742
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions codebuild/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ef59742

Please sign in to comment.