AWS Classroomnotes 26/Feb/2022

AWS Elastic Beanstalk App with Database

  • Deploying django on elastic beanstalk Refer Here for the official documentation
  • Initialize your eb cli repository
    Preview
  • Since our app uses db lets use the preconfigure Environmental variables provided by RDS Refer Here
  • Now create environment
    Preview
  • Now get status and get the cname and add it to the Allowed hosts in settings.py
    Preview
    Preview
  • Deploy the application
    Preview
  • Now try to access the application
    Preview
  • Since there is no db our application fails, Lets add DB instance to the environment Refer Here
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Now the DB is created and hooked to aws elastic beanstalk environment
  • Now to create the migrations we need to create one more config. Refer to the section Add a database migration configuration file in the following link Refer Here
  • Then use the application
    Preview
  • Refer Here for the code

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube