Skip to content

Instantly share code, notes, and snippets.

@DanielDaCosta
Created October 14, 2021 16:30
Show Gist options
  • Save DanielDaCosta/6f3cc992b264a1fb6ab971a9b3c7327a to your computer and use it in GitHub Desktop.
Save DanielDaCosta/6f3cc992b264a1fb6ab971a9b3c7327a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Env Variables
# Database variables are saved on SSM Parameter Store
$ ACCOUNT_ID=`aws sts get-caller-identity --output text --query 'Account'`
$ DB_PASS=`aws ssm get-parameters --region us-east-1 --names /mlflow/DB_PASS --with-decryption --query "Parameters[0].Value" --output text`
$ DB_HOST=`aws ssm get-parameters --region us-east-1 --names /mlflow/DB_HOST --query "Parameters[0].Value" --output text`
$ DB_USER=`aws ssm get-parameters --region us-east-1 --names /mlflow/DB_USER --query "Parameters[0].Value" --output text`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment