Skip to content

Instantly share code, notes, and snippets.

@mark-schaal
Created February 15, 2017 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark-schaal/aee459a5b4061f75a5aab340766000ad to your computer and use it in GitHub Desktop.
Save mark-schaal/aee459a5b4061f75a5aab340766000ad to your computer and use it in GitHub Desktop.
AWS Bash Shells - Drupal - RDS Secrets
#!/bin/bash
# Integrates into /etc/profile.d/ for execution at instance creation
# Exports secrets into environment variables accessible from the shell
# Requires additional integration with Apache webserver for utilization from settings.php
export DRUPAL_RDS_USER=
export DRUPAL_RDS_PASS=
export DRUPAL_RDS_HOST=
export DRUPAL_RDS_DB=
export DRUPAL_RDS_PORT=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment