Create Public instance

  1. Go to EC2 service management console
  • Click Instances.
  • Click Launch instances. EC2
  1. At the Name and tags section.
  • Fill the Name field with labBastionHost01 value.
  • Fill the Number of instances with 1 value. EC2
  1. At the Application and OS Images (Amazon Machine Image) section.
  • Click on Instance type Ubuntu.
  • Choose Ubuntu Server 24.04 LTS (HVM), SSD Volume Type on Amazon Machine Image (AMI) field.
  • Leave the rest as default. EC2
  1. At the Instance type section.
  • Choose t2.micro Instance type. EC2
  1. At the Key pair (login) section.
  • Click on the Create new key pair. EC2
  • At the Create key pair popup.
    • Fill the Key pair name field with labBastionHostSSHKey01 value.
    • Leave the rest as default.
    • Click Create key pair button. EC2
  1. At the Network settings section.
  • Click the Edit button. EC2
  • At the Edit sections.

    You need to choose labPublicSubnet01 subnet which we allow Enable auto-assign public IPv4 address on that subnet when creating VPC before.

    • Choose labVPC01 on VPC - required field.
    • Choose labPublicSubnet01 on Subnet field.
    • Choose Enable on Auto-assign public IP field.
    • Choose Select existing security group on Firewall (security groups) field.
    • Choose labBastionHostSG01 on Common security groups field.
    • Click Launch Instance button. EC2
  1. Click View all instances to return to the list of EC2 instances. EC2

Next, we will configure our EC2 linux bastion host.