Skip to content

Commit

Permalink
fix(codebuild): simplify error handling by removing 'pipefail' from s…
Browse files Browse the repository at this point in the history
…et command
  • Loading branch information
Your Name committed Mar 18, 2026
1 parent 3ba6ef5 commit 450f152
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions codebuild/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ phases:
on-failure: ABORT
commands:
- |
set -euo pipefail
set -eu
TF_WORKSPACE="${TF_WORKSPACE:-default}"
export TF_WORKSPACE
Expand Down Expand Up @@ -78,14 +78,14 @@ phases:
on-failure: ABORT
commands:
- |
set -euo pipefail
set -eu
TF_WORKSPACE="${TF_WORKSPACE:-default}"
export TF_DATA_DIR="$(pwd)/terraform_data_dirs/${TF_WORKSPACE}"
export TF_VAR_github_token="$GITHUB_TOKEN"
echo "Running tf apply for workspace ${TF_WORKSPACE} (TF_DATA_DIR=${TF_DATA_DIR})"
tf apply -auto-approve -input=false
- |
set -euo pipefail
set -eu
export TF_DATA_DIR="$(pwd)/terraform_data_dirs/${TF_WORKSPACE:-default}"
LAMBDA_ARN=$(tf output -raw lambda_token_refresh_arn 2>/dev/null || true)
AWS_REGION=$(aws configure get region || echo "us-gov-west-1")
Expand All @@ -102,7 +102,7 @@ phases:
echo "Lambda not deployed or output not found; skipping token refresh."
fi
- |
set -euo pipefail
set -eu
export TF_DATA_DIR="$(pwd)/terraform_data_dirs/${TF_WORKSPACE:-default}"
AWS_REGION=$(aws configure get region || echo "us-gov-west-1")
CLUSTER=$(tf output -raw ecs_cluster_name 2>/dev/null)
Expand Down

0 comments on commit 450f152

Please sign in to comment.