From cabcbfce56f6f10988acf2d014f57721c0607402 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Tue, 13 May 2025 15:46:44 -0400 Subject: [PATCH] updated from tfmod-pipeline --- buildspecs/scripts/manage_tools.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buildspecs/scripts/manage_tools.sh b/buildspecs/scripts/manage_tools.sh index 19d2c4a..35d25f8 100644 --- a/buildspecs/scripts/manage_tools.sh +++ b/buildspecs/scripts/manage_tools.sh @@ -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) @@ -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 @@ -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:"