Creating an instance through the Management Console

Just to get a feel of the AWS Management Console and to fully understand how much Terraform simplifies working with AWS, let's create a single EC2 instance manually:

  1. Log in to the console and choose EC2 from the list of services:
  1. Click on Launch Instance:
  1. Choose AWS Marketplace from the left sidebar, type Centos in the search box, and click on the Select button for the first search result:
  1. On each of the next pages, just click on Next till you reach the end of the process and you get a notification as follows:

As you see, it's not really a quick process to create a single virtual server on EC2. You have to choose an AMI, an instance type, configure network details and permissions, select or generate an SSH key, properly tag it, pick the right security groups, and add storage. Imagine that your day would consist only of manual tasks such as this. What a boring job would it be?

AMI is a source image an instance is created from. You can create your own AMIs, use the ones provided by AWS, or select one from a community at AWS Marketplace. A Security Groups (SG) is like a firewall. You can attach multiple SGs to an instance and define inbound and outbound rules. It allows you to configure access not only for IP ranges, but also for other security groups.

And, of course, we looked at only a single service: EC2. As you know already, there are over 70 of them, each with its own interface to click through. Let's take a look now at how to achieve the same with AWS CLI.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.169.94