Skip to content

Commit 18f81d0

Browse files
Add region configuration to default profile (#687)
1 parent 813e9f1 commit 18f81d0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

template/v2/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh

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

65+
# Add region configuration using REGION_NAME environment variable
66+
aws configure set region "${REGION_NAME}"
67+
echo "Successfully configured region to ${REGION_NAME}"
68+
6569
# add SparkMonitor and Connection Magic entrypoint
6670
NB_USER=sagemaker-user
6771

template/v3/dirs/etc/sagemaker-ui/sagemaker_ui_post_startup.sh

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

65+
# Add region configuration using REGION_NAME environment variable
66+
aws configure set region "${REGION_NAME}"
67+
echo "Successfully configured region to ${REGION_NAME}"
68+
6569
# add SparkMonitor and Connection Magic entrypoint
6670
NB_USER=sagemaker-user
6771

0 commit comments

Comments
 (0)