Skip to content

Commit

Permalink
fix(codebuild): remove redundant mkdir command for plugin cache in bu…
Browse files Browse the repository at this point in the history
…ild phase
  • Loading branch information
Your Name committed Mar 18, 2026
1 parent a5a3ff6 commit 3ba6ef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codebuild/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ phases:
on-failure: ABORT
commands:
- echo "Installing terraform ${TF_VERSION}..."
- mkdir -p "$TF_PLUGIN_CACHE_DIR" /root/.terraform.d/plugin-cache
- |
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
Expand All @@ -40,7 +41,6 @@ phases:
- tf --version
- pip3 install --quiet requests
- echo "Warming provider cache from S3..."
- mkdir -p "$TF_PLUGIN_CACHE_DIR" /root/.terraform.d/plugin-cache
- aws s3 sync "${PROVIDER_CACHE_S3}/" "$TF_PLUGIN_CACHE_DIR/" --region "$PROVIDER_CACHE_S3_REGION" --quiet || true

pre_build:
Expand Down Expand Up @@ -72,7 +72,6 @@ phases:
tf init -input=false
fi
tf workspace select "$TF_WORKSPACE"
echo "Active workspace: $(tf workspace show)"
build:
Expand Down

0 comments on commit 3ba6ef5

Please sign in to comment.