Create EC2 server

Launch EC2 instance in Public Subnet

  1. Access the AWS Management Console interface:
    • Locate and Click on EC2
    • Choose EC2

ConnectPrivate

  1. In the EC2 interface:
    • Choose Singapore region
    • Srcoll down
    • Select Launch instance

ConnectPrivate

  1. Provide a Name and tags for the instance, enter EC2 Public

ConnectPrivate

  1. Choose the AMI:
    • Select Amazon Linux
    • Choose Amazon Linux 2 AMI

ConnectPrivate

  1. Select an Instance type and opt to create a new key pair

ConnectPrivate

  1. In the Create key pair interface:
    • Enter Key pair name: workshop-keypair
    • For Key pair type, choose RSA
    • Choose .pem for Private key file format
    • Then click on Create key pair

ConnectPrivate

  1. Configure the Network:
    • VPC - required: choose workshop-vpc
    • Subnet: choose Public Subnet 2
    • Enable Auto-assign public IP
    • For Firewall (Security Group), select Select existing security group
    • Choose Public Subnet SG

ConnectPrivate

  1. Check out the configuration and choose Launch instance

ConnectPrivate

  1. Complete the instance creation

ConnectPrivate

Launch EC2 instance in Private Subnet

  1. In the EC2 interface:

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

ConnectPrivate

  1. Choose the AMI:
    • Select Amazon Linux
    • Choose Amazon Linux 2 AMI

ConnectPrivate

  1. Choose Key pair name: workshop-keypair

ConnectPrivate

  1. Configure the Network
    • VPC - required: choose workshop-vpc
    • Subnet: choose Private Subnet 1
    • Disable Auto-assign public IP
    • For Firewall (Security Group), select Select existing security group
    • Choose Private Subnet SG

ConnectPrivate

  1. Review and click on Launch instance

ConnectPrivate

  1. Complete the instance creation.

ConnectPrivate

  1. Check the status of 2 EC2 instances

ConnectPrivate