Skip to content

Commit cc337c3

Browse files
committed
Add region configuration to default profile - future patch
1 parent 18f81d0 commit cc337c3

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)