Skip to content

Commit

Permalink
updated from tfmod-pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed May 13, 2025
1 parent 3285c2b commit cabcbfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildspecs/scripts/manage_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ echo "--- Starting Tool Management Script (manage_tools.sh) ---"
# --- Configuration & Environment Variables ---
# Required environment variables:
# - TOOL_DEFINITIONS: JSON string defining tools (name, s3_key, checksum, archive_format, executable_path_in_archive)
# - ARTIFACTS_BUCKET: S3 bucket name for downloading tool archives
# - ARTIFACT_BUCKET: S3 bucket name for downloading tool archives
# - REQUIRED_TOOLS: Space-separated list of tool names to install (e.g., "terraform terragrunt")
# - CODEBUILD_SRC_DIR: Base directory for caching (CodeBuild specific, but adaptable)

Expand All @@ -25,8 +25,8 @@ if ! echo "$TOOL_DEFINITIONS" | jq empty > /dev/null 2>&1; then
exit 1
fi

if [ -z "$ARTIFACTS_BUCKET" ]; then
echo "ERROR: ARTIFACTS_BUCKET environment variable is not set or is empty." >&2
if [ -z "$ARTIFACT_BUCKET" ]; then
echo "ERROR: ARTIFACT_BUCKET environment variable is not set or is empty." >&2
exit 1
fi

Expand Down Expand Up @@ -106,7 +106,7 @@ for tool_name_var in $REQUIRED_TOOLS; do

archive_filename=$(basename "$s3_key")
cached_archive_path="$TOOL_CACHE_DIR/$archive_filename"
s3_source_path="s3://${ARTIFACTS_BUCKET}/${s3_key}"
s3_source_path="s3://${ARTIFACT_BUCKET}/${s3_key}"
target_executable_path="$INSTALL_DIR/$tool_name" # Final destination of the executable

echo "Details for $tool_name:"
Expand Down

0 comments on commit cabcbfc

Please sign in to comment.