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