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

Specify subnet so migrations work #87

Open
cecilia-donnelly opened this issue Dec 21, 2021 · 0 comments
Open

Specify subnet so migrations work #87

cecilia-donnelly opened this issue Dec 21, 2021 · 0 comments

Comments

@cecilia-donnelly
Copy link
Member

From @xmunoz's comments in slack:

Running database migrations during image building is causing intermittent failure. I believe this is because the images aren't guaranteed to be built on the same subnets are the running instances, which means that they sometimes won't have network access to the DBs. It might be possible to define the subnet images get built on, but in the mean time, I'm going to remove db migrations from the deployment process. (Done in 535eb99)

Going forward, we would like to add migrations back into our deployment script.

subnet_id or vpc_id might be the solution. Add one of these to the image config: https://www.packer.io/docs/builders/amazon/ebs#vpc_id

This will require specifying the value explicitly in the server image config, and passing that variable through to image.json: https://github.com/PermanentOrg/infrastructure/tree/main/images

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

No branches or pull requests

1 participant