Deploy Instance from AMI

Deploy EC2 Instance from AMI

Below is a detailed guide to deploy an EC2 instance from the newly imported AMI:

  1. Access the Amazon EC2 console. EC2 Console

  2. In the navigation pane, select AMIs. EC2 Console

  3. Find and select the AMI you just imported (e.g., ami-0f0f06b6fef407b6f) and click Launch instance from AMI.

    EC2 Console

  4. Name: Enter a name for the EC2 instance, for example: Import-Server.

    Instance Name

  5. AMI: Keep the default selected AMI.

    AMI Selection

  6. Instance type: Keep the default selected instance type and click Create new key pair.

    Instance Type

  7. In the Create key pair window, enter the key name as import-server-key, select type RSA and format .pem, then click Create key pair to download the key to your machine.

    Key Pair

  8. In the Network settings section, select Create security group, check to allow SSH, HTTPS and HTTP traffic from the Internet. Network Settings

  9. Click Launch instance.

    View Instances

  10. Confirm the information of the newly created instance.

    Instance Details

  11. Download and install MobaXterm tool. Then, open the application, click the Session button, and select SSH protocol. SSH Connection SSH Connection

  12. Select SSH client to get connection information and enter the server’s IP address in the Remote host field to start the connection.

    SSH Client

  13. Enter the Public IP address of the server in the Remote host field and enter the username fcajstudent in the Specify username field. Next, open the Advanced SSH settings tab, check Use private key and point the path to the import-server-key.pem key file saved on your machine. Finally, click OK to save the session and start accessing the server.

    SSH Info

  14. Enter password to complete SSH authentication. SSH Info SSH Info

  15. After successful SSH connection, you have completed deploying the EC2 instance from AMI and can check connectivity using ping command, for example ping 8.8.8.8 -c5

    Connectivity Check