Skip to content

Commit 0c614d1

Browse files
authored
Scripts: Add export statements and instruction to fetch awscli (compile_version_upload_s3.sh) (#10245)
Add export statements and instruction to fetch awscli
1 parent 27215d2 commit 0c614d1

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

scripts/compile_version_upload_s3.sh

+11-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
#
2020
# inv docker.up
2121
#
22+
# You also need the "awscli" PyPi package in your local Python environment.
23+
#
24+
# pip install awscli
25+
#
26+
# Note: The version that used is currently simply the latest. If there are issues in
27+
# the future, we can consider fetching the 'mc' client from MinIO instead.
28+
#
2229
#
2330
# PRODUCTION ENVIRONMENT
2431
#
@@ -121,10 +128,10 @@ then
121128
# Upload the .tar.gz to S3 development environment
122129
echo "Uploading to dev environment"
123130

124-
AWS_ENDPOINT_URL="${AWS_ENDPOINT_URL:-http://localhost:9000}"
125-
AWS_BUILD_TOOLS_BUCKET="${AWS_BUILD_TOOLS_BUCKET:-build-tools}"
126-
AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-admin}"
127-
AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-password}"
131+
export AWS_ENDPOINT_URL="${AWS_ENDPOINT_URL:-http://localhost:9000}"
132+
export AWS_BUILD_TOOLS_BUCKET="${AWS_BUILD_TOOLS_BUCKET:-build-tools}"
133+
export AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-admin}"
134+
export AWS_SECRET_ACCESS_KEY="${AWS_SECRET_ACCESS_KEY:-password}"
128135

129136
aws --endpoint-url $AWS_ENDPOINT_URL s3 cp $OS-$TOOL-$VERSION.tar.gz s3://$AWS_BUILD_TOOLS_BUCKET
130137

0 commit comments

Comments
 (0)