Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script to run prod DB migration #242

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add script to run prod DB migration #242

wants to merge 1 commit into from

Conversation

sarangj
Copy link
Contributor

@sarangj sarangj commented Mar 30, 2023

Whipped this up to be able to run the prod migration from a non prod machine. This does assume a couple things:

  1. You have a profile in your local aws config called 'digital-dev' (this could maybe be passed as a param, but it would be easy enough to alter the script before running :shrug)
  2. You have installed jq (https://stedolan.github.io/jq/) which is an awesome command line JSON parser

A pretty bare bones script, but thought it would be helpful to at least document how I ran the migration.

Whipped this up to be able to run the prod migration from a non
prod machine. This does assume a couple things:

  1. You have a profile in your local aws config called 'digital-dev'
     (this could maybe be passed as a param, but it would be easy enough
     to alter the script before running :shrug)
  2. You have installed jq (https://stedolan.github.io/jq/) which is an
     awesome command line JSON parser

A pretty bare bones script, but thought it would be helpful to at least
document how I ran the migration.
@mwbenowitz mwbenowitz temporarily deployed to Tugboat March 30, 2023 18:48 Destroyed
Copy link
Contributor

@mitri-slory mitri-slory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script looks good. Smart idea to add this script for easier production migration cycles in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants