<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: McLovin</title>
    <description>The latest articles on Forem by McLovin (@jeremyv).</description>
    <link>https://forem.com/jeremyv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F800368%2Fee541efc-691d-4b74-9a43-717b4da24583.jpeg</url>
      <title>Forem: McLovin</title>
      <link>https://forem.com/jeremyv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jeremyv"/>
    <language>en</language>
    <item>
      <title>WordPress with AWS - Network Deployment</title>
      <dc:creator>McLovin</dc:creator>
      <pubDate>Sun, 23 Jan 2022 13:40:02 +0000</pubDate>
      <link>https://forem.com/awscommunity-asean/wordpress-with-aws-network-deployment-16l0</link>
      <guid>https://forem.com/awscommunity-asean/wordpress-with-aws-network-deployment-16l0</guid>
      <description>&lt;h2&gt;
  
  
  Virtual Private Cloud (VPC)
&lt;/h2&gt;

&lt;p&gt;Before we deploy anything in AWS, we must always begin with a &lt;strong&gt;Custom VPC&lt;/strong&gt;. Regardless if this is a personal project or a POC to be deployed, the default VPC must not be used.&lt;/p&gt;

&lt;p&gt;To deploy a VPC, login to your AWS console and search for VPC. VPC or Virtual Private Cloud is your own isolated network in the cloud. We can think of this as an &lt;u&gt;empty subdivision lot that has been purchased in a remote area&lt;/u&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwty06ov11fi48lfehgnv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwty06ov11fi48lfehgnv.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on your VPCs and click on Create VPC. Enter your desired VPC name and a CIDR block of your choice. You can use the same CIDR block that I used in the screenshot below. Add tags if preferred and click on Create VPC.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frlwmq0t7vz8kjcxpptrg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frlwmq0t7vz8kjcxpptrg.png" alt="Image description"&gt;&lt;/a&gt; &lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4jqz0s3om7zzczjsg2ri.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4jqz0s3om7zzczjsg2ri.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Internet Gateway (IGW)
&lt;/h2&gt;

&lt;p&gt;After creating your own private network in the cloud, it is time to put your Internet Gateway. Internet Gateway is a fully managed resource from AWS and would automatically adjust its capabilities based on your sent and received traffic. Let's think of an IGW as the main gate of our empty subdivision - serving as our entry/exit point for our potential residents.&lt;/p&gt;

&lt;p&gt;You can create an Internet Gateway through the VPC Console. Head to the left panel and click on &lt;strong&gt;Internet Gateway&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyrxuknmcnj111keyyelb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyrxuknmcnj111keyyelb.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After creating an Internet Gateway, do not forget to attach it to your VPC. It is also important to know that an &lt;strong&gt;IGW is free!&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnlpye9opgixphy60iy2o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnlpye9opgixphy60iy2o.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Subnet
&lt;/h2&gt;

&lt;p&gt;Now that our VPC (empty lot) and IGW (main gate) are ready, it is time to create our subnivium's streets - our subnets! A subnet, or a subnetwork, is a logical subdivision of an IP network. In analogy, this is a block or a street filled with houses (EC2 instances - we'll get there). This project will use 2 subnets - our Public Subnet and our Database Subnet. To create a subnet, click on Subnets on the left pane on the VPC console and click on &lt;strong&gt;Create subnet&lt;/strong&gt;. Select the VPC we created since subnets will reside inside the VPC (just like how streets reside in a subdivision).&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9gfic0tpr6z1iomr0tou.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9gfic0tpr6z1iomr0tou.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
After this, we can proceed on naming and assigning an IPv4 CIDR Block on our Subnets. You can assign the same blocks that I used.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyfk5r6pzgwpid30zsl67.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyfk5r6pzgwpid30zsl67.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
This will create our Public Subnet. But remember that we need another subnet for our Database. Click on &lt;strong&gt;Add new subnet&lt;/strong&gt; to add another one!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj4f6axy4xvksi72hn0g1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj4f6axy4xvksi72hn0g1.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
After creating our second subnet, click on Create subnet. You're done! We have now 2 subnets to house our EC2 and RDS instance. It is also important to note that Subnets are free of charge!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3hbfo8l6f59iax3xtwh9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3hbfo8l6f59iax3xtwh9.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Route Table
&lt;/h2&gt;

&lt;p&gt;We have our subdivision (VPC) with its gates for entrance/exit (IGW), as well as our streets (Subnets), but how can a potential buyer (traffic) know the directions inside this massive land? The answer is street signages, or in an AWS environment, &lt;strong&gt;Route Tables&lt;/strong&gt;. Route Tables contain routes that will dictate where traffic will flow from subnets to other subnets or IGWs and NAT Gateways.&lt;/p&gt;

&lt;p&gt;To create a Route Table, click on Route tables on the left panel of the VPC Console. Select Create route table and give it a name and the VPC where we will be deploying this.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5pgmik9u6pb7qzm5yldb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5pgmik9u6pb7qzm5yldb.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After creating a Route Table, we now have to edit the routes to give it a list of "directions" to follow. On the &lt;strong&gt;Routes&lt;/strong&gt; tab, click on Edit routes. Add a new route that will forward all traffic (0.0.0.0/0) to our IGW. This means that everything associated with this Route Table will be directly in contact with our Internet Gateway, hence making this a &lt;strong&gt;Public Route Table&lt;/strong&gt;. Everything associated with this Route Table will be publicly accessible from external resources/traffic.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frqdxdip11qmdenilgb1x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frqdxdip11qmdenilgb1x.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
After saving the changes in our Public Route Table, edit the Subnet Associations and associate our previously created Public Subnet.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi4h5ba94kcca2du16qix.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi4h5ba94kcca2du16qix.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, we will be creating another Route Table, this time to direct the traffic from our Database Subnet. Since this Route Table &lt;strong&gt;will not have a route going to an IGW&lt;/strong&gt; (thus not publicly accessible), this will be considered as a Private Route Table associated with a Private Subnet (Database Subnet). &lt;/p&gt;

&lt;p&gt;Let's start by creating a new Route Table for our Database Subnet. For now, let us leave the routes as is, and just associate our Database Subnet with this route table. This is basically not yet functioning since it has no route entries.&lt;/p&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This concludes our network deployment for our project. Do remember that the 4 resources we created/provisioned are free of charge and will not incur any unintended costs! To summarize our executed actions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;We created a &lt;strong&gt;VPC&lt;/strong&gt; - which is our isolated network in the cloud. We can think of this as our newly open (and empty) subdivision.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We deployed an &lt;strong&gt;Internet Gateway (IGW)&lt;/strong&gt; on our VPC. This will allow us to have internet access into and out of our VPC. This will act as the main gate or entrance/exit of our subdivision.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We created &lt;strong&gt;Subnets&lt;/strong&gt; which are the logical division of our network. This is also VPC-related and will act as the street or block of our subdivision.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We created &lt;strong&gt;Route Tables&lt;/strong&gt; which were heavily related and associated with Subnets. This acts as the street signages and will dictate where traffic will be flowing inside our environment.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;The next part will be the most exciting one! We will be deploying our EC2 Instance, our RDS Instance running MySQL, and finally deploy the WordPress Website! Stay tuned!&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ec2</category>
      <category>rds</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Deploying a WordPress Website in AWS using EC2 and RDS</title>
      <dc:creator>McLovin</dc:creator>
      <pubDate>Fri, 21 Jan 2022 09:01:54 +0000</pubDate>
      <link>https://forem.com/awscommunity-asean/deploying-a-wordpress-website-in-aws-using-ec2-and-rds-2dmb</link>
      <guid>https://forem.com/awscommunity-asean/deploying-a-wordpress-website-in-aws-using-ec2-and-rds-2dmb</guid>
      <description>&lt;p&gt;Hello! If you're here to get a feel of AWS and its commonly used services, you are in the right place! This guide will get your feet wet with the basic structure of an AWS Application and will surely be an amazing experience to see your own website deployed. While this is not the most secure way of deploying a WordPress application, this is certainly one of the best ways to explore the AWS console, hands-on! Check out our architecture to see an overview of this series.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EVRw6v1Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t0j1x715c0nu14mhmnan.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EVRw6v1Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t0j1x715c0nu14mhmnan.png" alt="Image description" width="321" height="381"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;For all of you out there who are new to AWS, gear up because this will be an eye-opener of how amazing AWS can be! I will be providing cost estimates and warnings whenever we provision our resources and make sure that everyone is able to follow without worry.&lt;/p&gt;

&lt;p&gt;Before we start, I would like to tell you a little bit about myself. I am Jeremy, and I am currently working as a Cloud Engineer. I am a certified Solutions Architect Associate and basically use the AWS Console everyday for my job. This is my first blog post and my goal is to help every AWS user out there as much as I can.&lt;/p&gt;

&lt;p&gt;Enjoy the journey!&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ec2</category>
      <category>rds</category>
      <category>wordpress</category>
    </item>
  </channel>
</rss>
