Drupal In A Cloud - Part II
Drupal: Create A Virtual Private Cloud!
In previous article we looked at a Drupal Architecture in the cloud. We also learned the importance of breaking a larger network into smaller public and private segments. Now it's time to create the Virtual Private Cloud: the VPC.
Create My Cloud
Log into AWS console and select Your VPCs. From there, click Create VPC. Now complete the form with the values shown below and then click Yes, Create.
You should have DrupalVPC created under Your VPCs. And quite obviously we named our VPC as DrupalVPC.
Next, we must break this VPC into smaller segments using subnets. Let's create three subnets.
Break My Cloud
From the left menu on AWS console, select Subnets and then click Create Subnet. Complete the form with values shown below and then click Yes, Create.
Notice we created our first subnet in the zone us-east-1a. We will create 2 more subnets and spread them across multiple zones.
Let's create a second subnet.Follow the same steps and fill in the form with the values below.
This subnet now belongs to us-east-1b.
Let's create a third subnet. Same steps except change the values to as below.
This subnet now belongs to us-east-1c.
Where is my DNS?
If we were to use Amazon default VPC then the DNS support for default VPC is enabled by default. But we are creating a VPC from scratch and therefore we need to enable DNS support for our VPC.
Select your VPC and click on Actions. Next, select Edit DNS Resolution. Enable DNS resolution as below and click Save.
Select your VPC and click on Actions. Next, select Edit DNS Hostnames. Enable DNS hostnames as below and click Save.
And now we have,
VPC
- DrupalVPC: 10.0.0.0/16
Subnets
- DrupalVPC-10.0.1.0: 10.0.1.0/24
- DrupalVPC-10.0.2.0: 10.0.2.0/24
- DrupalVPC-10.0.3.0: 10.0.3.0/24
Remember, these subnets are private and any instances placed within these subnets can communicate freely with each other since these subnets belong to the same VPC.
Now moving on to our Drupal Architecture. We need to setup Drupal Back-End before we install Drupal Front-End. In other words, let's create our MySql database.
In the next tutorial we will look at how to configure MySql on AWS RDS: Relational Database Service.
See you then!
Hi, I am Ritesh Patel. I live in a beautiful town surrounded by the mountains. C&O Canal is few miles away. State parks are only a distance away & bike trails galore. It is home sweet home Frederick, MD. A passionate developer. Love to cook. Enjoy playing "Bollywood Tunes" on my harmonica. Apart from that just a normal guy.