Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: removing region from mount_s3 script (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanketD92 authored Nov 20, 2020
1 parent bf37728 commit 06b2780
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ do
study_id="$(printf "%s" "$mounts" | jq -r ".[$study_idx].id" -)"
s3_bucket="$(printf "%s" "$mounts" | jq -r ".[$study_idx].bucket" -)"
s3_prefix="$(printf "%s" "$mounts" | jq -r ".[$study_idx].prefix" -)"
region="$(curl http://169.254.169.254/latest/meta-data/placement/region)"

# Mount S3 location if not already mounted
study_dir="${MOUNT_DIR}/${study_id}"
Expand All @@ -50,7 +49,7 @@ do
then
printf 'Mounting study "%s" at "%s"\n' "$study_id" "$study_dir"
mkdir -p "$study_dir"
goofys --region "${region}" --acl "bucket-owner-full-control" "${s3_bucket}:${s3_prefix}" "$study_dir"
goofys --acl "bucket-owner-full-control" "${s3_bucket}:${s3_prefix}" "$study_dir"
fi
done

Expand Down

0 comments on commit 06b2780

Please sign in to comment.