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

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner