Posted on: 24/04/2018
Publishing a web project on AWS may be headache for first-timers, so this post documents the steps to deploy and resolve errors.
In this guide, I will use my JayBlog project folder as the material for deployment to AWS. You will also need your database commands to create tables in AWS database.
Initial requirements:
That's all we need. Please note that we will be using 2 services from this console:
If you use a non-relational database for your project (ie. NoSQL), then I suggest you to use DynamoDB, but you will have less offers for Free Tier.
Stage 1: Create a database hosting instance for Relational Database.
There are 2 methods of creating database for your web deployment as below, follow method 1 if you will deploy project first, otherwise follow method 2 if you will deploy the database first.
So if you choose to go with method 1, continue to reading stage 2.
If you choose to go with method 2, navigate to AWS RDS on the AWS Management Console or click here. On Amazon RDS dashboard, navigate to Instances tab on the left-side navbar, select Launch DB instance button on the top-left conner. Then you can set up your database:
available
" before you continue.Stage 2: Create an environment to host your application.
Git
tag of the deployed branch.403
Forbidden. That's because the server hasn't had an idea of where to access your project folder so it just open the default root folder of your user. So you need to specify your project folder:If you have followed method 1 in stage 1, continue on stage 3.
Stage 3: Create a database instance for your project.
Now just select Modify on Database card from your Application Configuration. Next step is to set up database:
db.t2.micro
, which is the smallest class of database engine provided for free users.Stage 4: Set up your database on AWS RDS and run your website.
When you have done the last step, your website is ready to run on AWS. Lets open the site URL on your phones or tablets and enjoy your project on the internet!