Create EC2 Server

Create EC2 in the Public subnet

  1. Access AWS Management Console

    • Find EC2
    • Select EC2

Create VPC

  1. In the EC2 interface

    • Select Instances
    • Select Launch instances

Create VPC

  1. Name and tags of the instance, enter EC2 Public

Create VPC

  1. Executing AMI Selection

    • Select Quick Start
    • Select Amazon Linux 2
    • Select AMI

Create VPC

  1. Select Instance type and Select Create new key pair

Create VPC

  1. In the Create key pair interface

    • Key pair name, enter aws-keypair (optional name, you can set any).
    • Key pair type, select RSA
    • Private key file format, select .pem

Create VPC

  1. Configure Network

    • VPC, select ASG
    • Subnet, select Public Subnet 1
    • Auto-assign public IP, select Enable
    • Firewall (Security Group), select Select existing security group
    • Select Public subnet -SG
    • Select Launch instance

Create VPC

  1. Complete instance creation

Create VPC

  1. Wait about 5 minutes Status check will change to 2/2 checks passed

Create VPC

Create EC2 in a Private subnet

  1. In the EC2 interface

    • Select Instances
    • Select Launch instances
  2. Name and tags, enter EC2 Private

Create VPC

Create VPC

  1. Executing AMI Selection

    • Select Quick Start
    • Select Amazon Linux 2
    • Select AMI

Create VPC

  1. Make instance type selection. Key pair name, select aws-keypair

Create VPC

  1. Configure Network

    • VPC, select ASG vpc
    • Subnet, select Private subnet 2
    • Auto-assign public IP, select Disable. If not Disable, you need to check the configuration automatically allocate public IP for the subnet.

Create VPC

  1. Complete instance creation

    • Select View all instances

Create VPC

  1. Select EC2 Private

    • Select Details
    • Store Private IPv4 addresses

Create VPC