Skip to content

Commit

Permalink
properly print the profile name
Browse files Browse the repository at this point in the history
  • Loading branch information
ulziibay committed Aug 29, 2023
1 parent 92d7256 commit d9f9911
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions circleci/catapult-publish-lambda
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ for AWS_REGION in ${AWS_REGIONS}; do
# region doesn't really matter for an S3 upload, since the bucket region is fixed
AWS_REGION=$AWS_REGION
if [[ -v OIDC_LAMBDA_ROLE ]]; then
echo "Uploading to S3 using profile `$AWS_LAMBDA_PROFILE`"
aws s3 --profile $AWS_LAMBDA_PROFILE cp bin/${APP_NAME}.zip s3://${LAMBDA_AWS_BUCKET}-${AWS_REGION}/${LAMBDA_AWS_S3_KEY}
echo "Uploading to S3 using profile ${AWS_LAMBDA_PROFILE}"
aws s3 cp --profile $AWS_LAMBDA_PROFILE bin/${APP_NAME}.zip s3://${LAMBDA_AWS_BUCKET}-${AWS_REGION}/${LAMBDA_AWS_S3_KEY}
else
echo "Uploading to S3 using static credential"
AWS_ACCESS_KEY_ID=$LAMBDA_AWS_ACCESS_KEY_ID \
Expand Down
4 changes: 2 additions & 2 deletions circleci/catapult-publish-spark
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ GLUE_AWS_S3_KEY=${APP_NAME}/${SHORT_SHA}
# upload to s3
AWS_REGION=$AWS_REGION
if [[ -v OIDC_GLUE_UPLOAD_ROLE ]]; then
echo "Uploading to S3 using profile `$AWS_GLUE_PROFILE`"
aws s3 --profile $AWS_GLUE_PROFILE cp --recursive bin/${APP_NAME} s3://${GLUE_AWS_BUCKET}-${AWS_REGION}/${GLUE_AWS_S3_KEY}
echo "Uploading to S3 using profile ${AWS_GLUE_PROFILE}"
aws s3 cp --profile $AWS_GLUE_PROFILE --recursive bin/${APP_NAME} s3://${GLUE_AWS_BUCKET}-${AWS_REGION}/${GLUE_AWS_S3_KEY}
else
echo "Uploading to S3 using static credential..."
AWS_ACCESS_KEY_ID=$GLUE_AWS_ACCESS_KEY_ID \
Expand Down
2 changes: 1 addition & 1 deletion circleci/s3-upload
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fi
echo " Source: $SOURCE_DIR_OR_FILE"
echo " Desination: $S3_BUCKET_URL"
if [[ -v OIDC_S3_UPLOAD_ROLE ]]; then
echo "Uploading files to S3 using profile $AWS_S3_PROFILE"
echo "Uploading files to S3 using profile ${AWS_S3_PROFILE}"
aws s3 cp --profile $AWS_S3_PROFILE $DIR_OR_FILE_TO_UPLOAD $S3_BUCKET_URL --acl "private" --cache-control "max-age=31536000" $ADDITIONAL_S3_FLAGS
else
echo "Uploading files to S3 using static credentials"
Expand Down

0 comments on commit d9f9911

Please sign in to comment.