-
Notifications
You must be signed in to change notification settings - Fork 75
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
Write to Both DynamoDB and RDS #993
Conversation
I'm going to look at and finish up this PR |
ed810a2
to
dabbadb
Compare
dabbadb
to
e196420
Compare
Now that I'm actually writing the migration scripts, I've realized that this is more work than I gave it credit for. I'm going to try to get this done in the next week or so, but I don't like my chances |
@ecxyzzy I'm gonna need to work with you on this. We've been on this rodeo together, so it's not too crazy, but we need to review the plan, review the migration script, and help with the deployment. |
The staging instance isn't working, reporting "DB_URL must be defined" despite #1058 adding the dev DB to the staging deploy. |
b04b33b
to
88956ae
Compare
|
908c19b
to
536d839
Compare
I really disliked that too... As far as I can tell, there isn't a good way to fix this because the declarations are used in completely unrelated parts of the deployment pipeline. The environment variables in the GitHub workflow manually load all the repository secrets into the current environment prior to any scripts running, whereas the CDK script validates environment variables when it actually runs. Neither of these steps can be done in the other one... A possible strategy might be to upload a base64 encoded env file and decode it to get all the environment variables. This makes the repository secrets more opaque and the deployment scripts more complicated... |
@ecxyzzy thanks a ton. Do you mind talking about what the problem was? |
I think the main issue was that at some point |
Above problem has been fixed. Apparently the problem was the lambda dies after the response is sent, and we don't |
Summary
Migration Procedures
Action Items
Batch copy.Each batch takes 5 minutes, which is good enough.Test Plan
Related Issues
Future Followup