Skip to content

Create your EC2 Instance

  1. Open the Amazon EC2 console ([https://console.aws.amazon.com/ec2/]).
  2. In the navigation pane, choose “Instances” and click Launch Instances
  3. Provide a name for the ec2 instance my-instance
  4. An AMI is a template that contains the configuration for an EC2 instance. AMIs include the operating system, applications, and other software that will be installed on the instance. Select Amazon Linux 2023 AMI
  5. An instance type defines the hardware configuration of the EC2 instance, including the number of CPUs, amount of memory, and storage capacity. Select t2.micro - which has capacity of 1 vCPU and 1G RAM
  6. Create a Keypair which will used when you want to connect to this instance via command line. my-keypair. Keypair is nothing but a public/private key where public key is deployed in EC2 instance and if you or anyone wants to connect should provide the private key to connect to instance.
  7. In the Network Settings, click Edit and choose the VPC myvpc and Subnet mypublicsubnet which you have already created. Change the Auto Assign Public IP to Enable
  8. For Firewall (Security Group), choose the Create security group and provide a name ssh-access.

sec-group

  1. Leave the remanining settings as default and proceed to Summary and verify all the details are good.

ec2-launch

  1. Once you have verified all the settings, click Launch instance. This will provision the instance and start running the operating system and applications.
  1. Goto EC2 Dashboard page and you will find the instance created
  2. Click on the instance myinstance
  3. Click “Connect” and you can choose the option “EC2 Instance Connect” to open the instance in the browser window
  4. You will see the SSH window with command line logged into the user
Tutorial Videos Follow Us