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

Tutorial: Adding DB and Cache #9

Open
Andrew-Chen-Wang opened this issue Dec 13, 2020 · 0 comments
Open

Tutorial: Adding DB and Cache #9

Andrew-Chen-Wang opened this issue Dec 13, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@Andrew-Chen-Wang
Copy link
Owner

I'm not putting the tutorial in the README because I don't know where it should actually go? For sure it will be done before you actually deploy your initial server to ECS.

Beforehand, I'm only going to go through the database and this will be very sparse compared to my others. They should be relatively easy to configure and more straightforward than the others.

  1. Create a security group that allows PostgreSQL from the source ReverseProxy (basically the network group that you gave to your server, not the ALB/ELB). Outbound can be all.
  2. To configure the database, go to RDS.
  3. Select PostgreSQL because it's better, sorry.
  4. Configure it. Set your username, password, and database name given by cookiecutter-django's generation.
  5. Generate/press create. Click into the instance itself.
  6. Copy the endpoint (that huge url basically) and use that as your database host into parameter store. The port should still be 5432.

Costs: $50? $18 for the cache?

The steps are basically the exact same for ElastiCache, but most startups do not need it (you'll need it for Celery, but that's it). Just note that this is hella expensive. If you're in a startup, get a job first. Or buy your own server. Highly recommend the Raspberry Pi 4 if you're not going to use Gulp. I created this back when I couldn't get WiFi.

@Andrew-Chen-Wang Andrew-Chen-Wang added documentation Improvements or additions to documentation enhancement New feature or request labels Dec 13, 2020
@Andrew-Chen-Wang Andrew-Chen-Wang pinned this issue Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant