This example uses an Amazon Linux AMI (which is provided by AWS: Amazon Linux AMI 2017.09.1 (HVM), SSD Volume Type - ami-f63b1193). The Amazon Linux AMI is an EBS-backed, AWS-supported image.

The default image includes AWS command-line tools: Python, Ruby, Perl, and Java.

The repositories include: Docker, PHP, MySQL, PostgreSQL, and other packages.

Launch EC2 instance

  1. Select the instance type.
    Instance type
  2. Use the default instance settings.
    Default instance settings
  3. Increase the storage amount from the default 8 GB to 32 GB.

    You will need considerably more space on a larger server.

    Increase storage

  4. Assign the instance to the appd-appserver-security-group that you previously created.
    Assign the instance
  5. To launch the instance, you must specify a key pair. If you are using an existing key pair, ensure that you have access to the private key file; otherwise, generate a new key pair and download it from the AWS console. The private key file is required to connect to the instance using SSH.
    The new instance should be available after a few minutes. Once the instance is available, you can verify the status using the AWS console. Connect to it through SSH, enter:

    ssh -i "<private key file>.pem" ec2-user@ec2-18-222-75-189.us-east-2.compute.amazonaws.com
  6. Substitute the appropriate path and filename for your private key file.