Create EC2 Server
Create EC2 in Public subnet
- Access AWS Management Console

- In the EC2 interface
- Select Instances
- Select Launch instances

- Name and tags of the instance, enter
EC2 Public

- Executing AMI Selection
- Select Quick Start
- Select Amazon Linux 2
- Select AMI

- Make Instance type and Select Create new key pair

- In the Cretae key pair interface
- Key pair name, enter
aws-keypair
- Key pair type, select RSA
- Private key file format, select .pem

- 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

- Complete instance creation

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

Create EC2 in Private subnet
- In the EC2 interface
- Select Instances
- Select Launch instances

- Name and tags, enter
EC2 Private

- Executing AMI Selection
- Select Quick Start
- Select Amazon Linux 2
- Select AMI

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

- 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 subnet.

- Complete instance creation
- Select View all instances

- Select EC2 Private
- Select Details
- Store Private IPv4 addresses
