Skip to content

Commit 7f3dc99

Browse files
fixing formatting inconsistencies, reflecting new start-dagster.sh changes
1 parent 11fd7ee commit 7f3dc99

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

docs/Infrastructure_Guide/cloud-deployment.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Connect to the virtual machine and run the following commands to get everything
3030
```shell
3131
export AWS_DEFAULT_REGION=us-west-2
3232
# or set it to ~./bashrc file
33-
echo 'export AWS_DEFAULT_REGION=us-east-1' >> ~/.bashrc
33+
echo 'export AWS_DEFAULT_REGION=us-west-1' >> ~/.bashrc
3434
source ~/.bashrc
3535
```
3636
* Run an `aws` command such as `secretsmanager` to verify AWS connectivity:
@@ -73,7 +73,7 @@ Connect to the virtual machine and run the following commands to get everything
7373
```
7474
* Add to `PATH`:
7575
```shell
76-
`source $HOME/.local/bin/env`
76+
source $HOME/.local/bin/env
7777
```
7878
* Install libraries from `pyproject.toml` file:
7979
```shell
@@ -282,15 +282,31 @@ Last, create `start-dagster.sh`
282282
283283
# Extract values
284284
SUPABASE_PASSWORD=$(echo "$SUPABASE_SECRETS" | jq -r '.password')
285+
if [ -z "$SUPABASE_PASSWORD" ] || [ "$SUPABASE_PASSWORD" = "null" ]; then
286+
echo "ERROR: missing SUPABASE_PASSWORD from supabase secret" >&2
287+
exit 1
288+
fi
285289
export SUPABASE_PASSWORD
286-
290+
287291
SUPABASE_USER=$(echo "$SUPABASE_SECRETS" | jq -r '.user')
292+
if [ -z "$SUPABASE_USER" ] || [ "$SUPABASE_USER" = "null" ]; then
293+
echo "ERROR: missing SUPABASE_USER from supabase secret" >&2
294+
exit 1
295+
fi
288296
export SUPABASE_USER
289-
297+
290298
AWS_RDS_PASSWORD=$(echo "$AWS_RDS_SECRETS_PW" | jq -r '.password')
299+
if [ -z "$AWS_RDS_PASSWORD" ] || [ "$AWS_RDS_PASSWORD" = "null" ]; then
300+
echo "ERROR: missing AWS_RDS_PASSWORD from RDS secret" >&2
301+
exit 1
302+
fi
291303
export AWS_RDS_PASSWORD
292-
304+
293305
AWS_RDS_HOSTNAME=$(echo "$AWS_RDS_SECRETS_HN" | jq -r '.hostname')
306+
if [ -z "$AWS_RDS_HOSTNAME" ] || [ "$AWS_RDS_HOSTNAME" = "null" ]; then
307+
echo "ERROR: missing AWS_RDS_HOSTNAME from rds-hostname secret" >&2
308+
exit 1
309+
fi
294310
export AWS_RDS_HOSTNAME
295311
296312
DAGSTER_HOME=/home/ubuntu/card_data/card_data/

0 commit comments

Comments
 (0)