Skip to content

Commit b39cae9

Browse files
authored
Merge pull request #33 from athewsey/feat/helper-scripts
Remove hard-coded add-lcc-script region
2 parents a9ef779 + 04784aa commit b39cae9

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# OS and IDE files:
2+
.DS_Store
3+
.idea
4+
.ipynb_checkpoints/
5+
.vscode/
6+
7+
# Python build artifacts:
8+
__pycache__/

add-lcc-script.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
#!/bin/bash
22
# Registers a Lifecycle Configuration Script using the AWS CLI
3+
# NOTE: This registration by itself will not attach or enable it for any domains/users yet
34

45
set -eux
56

67
export LCC_SCRIPT_NAME='set-proxy'
78
export SCRIPT_FILE_NAME='scripts/set-proxy-settings/on-jupyter-server-start.sh'
8-
export SCRIPT_TYPE="JupyterServer"
9-
# export SCRIPT_TYPE="KernelGateway"
9+
export SCRIPT_TYPE='JupyterServer'
10+
# export SCRIPT_TYPE='KernelGateway'
1011

1112
LCC_CONTENT=`openssl base64 -A -in ${SCRIPT_FILE_NAME}`
1213

13-
aws sagemaker --region us-east-2 create-studio-lifecycle-config \
14+
aws sagemaker create-studio-lifecycle-config \
1415
--studio-lifecycle-config-name $LCC_SCRIPT_NAME \
1516
--studio-lifecycle-config-content $LCC_CONTENT \
1617
--studio-lifecycle-config-app-type $SCRIPT_TYPE

0 commit comments

Comments
 (0)