Skip to content

Commit 652c4f1

Browse files
authored
Add region configuration to default profile - future patch (#698)
2 parents 92b3e6b + cc337c3 commit 652c4f1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

build_artifacts/v2/v2.7/v2.7.0/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ echo "Successfully removed the ~/.aws/config file"
8989
aws configure set credential_source EcsContainer
9090
echo "Successfully configured default profile"
9191

92+
# Add region configuration using REGION_NAME environment variable
93+
aws configure set region "${REGION_NAME}"
94+
echo "Successfully configured region to ${REGION_NAME}"
95+
9296
# add SparkMonitor and Connection Magic entrypoint
9397
NB_USER=sagemaker-user
9498

build_artifacts/v3/v3.2/v3.2.0/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ echo "Successfully removed the ~/.aws/config file"
8989
aws configure set credential_source EcsContainer
9090
echo "Successfully configured default profile"
9191

92+
# Add region configuration using REGION_NAME environment variable
93+
aws configure set region "${REGION_NAME}"
94+
echo "Successfully configured region to ${REGION_NAME}"
95+
9296
# add SparkMonitor and Connection Magic entrypoint
9397
NB_USER=sagemaker-user
9498

0 commit comments

Comments
 (0)