Setting up an Arm server

One way to execute the example application on an Arm server is to use Amazon Web Services (AWS). The A1 instance type features 64-bit Arm Neoverse cores, powered by custom silicon that is designed by AWS.

You need an AWS account to launch an A1 instance in Elastic Compute Cloud (EC2). Here are the steps to launch an A1 instance on AWS:

  1. Create an AWS account if you do not already have one.
  2. Navigate to the EC2 dashboard and select Launch Instance.
  3. Select the Amazon Machine Image (AMI) for the cloud instance. The AMI includes the operating system and hardware architecture.
  4. Select the Ubuntu Server 18.04 OS, and click the 64-bit (Arm) button to the right of the image name as seen in the following screenshot:
  5. Click Select and chose any A1 instance type. For this example, the a1.medium option with one CPU and 2GB RAM is enough. No additional configuration parameters are needed.
    When creating the instance, ensure that the security group is set up to allow port 22 for ssh access and port 80 for the PHP application.
  6. Click Review and Launch and then Launch to create your instance. You will be prompted to select a private key pair to connect to this instance.
  7. Select Create a new key pair, type in a key pair name, for example, A1-PHP-example and select Download Key Pair. Keep this A1-PHP-example.pem file safe and accessible. You will need this file to connect to this instance remotely. More information about how to use the key pair from different operating systems is provided in the AWS documentation.
    This options is not eligible for free-tier AWS usage, but the charges to just try are minimal, see Related information
  8. Navigate back to the EC2 dashboard > Instances tab to view the created machine instance. Highlighting the instance displays relevant data on the bottom of the screen, for example the description, status, and tags of the instance. Under the Description tab, there is a Public DNS (IPv4) section representing this IP address of this instance. You can also use the IP address under the IPv4 Public IP.
  9. Copy the IP address and use it with the key pair file to ssh into the machine. There are different ways to connect. You can use the AWS documentation for more information. The username to ssh into the machine is ubuntu. A simple command-line connection would be what you can see in the following code:
    > ssh -i A1-PHP-example.pem ubuntu@A1InstanceIP
    Running this command will log in to the created instance with the ubuntu username. With an instance created and connected, the next steps are to install Docker and run the containerized application in the cloud. We will explore this in Docker installation.
Previous Next