View a markdown version of this page

AL2027 on Amazon EC2 - Amazon Linux 2027
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AL2027 on Amazon EC2

AL2027 Preview

AL2027 is currently available for preview. It is intended for evaluation and testing only and is not recommended for production workloads.

Use one of the following procedures to launch an Amazon EC2 instance with an AL2027 AMI. You can choose either the standard AMI or the minimal AMI.

Note

For x86-64 instances, AL2027 requires x86-64-v3 or later processors. The following instance types are not supported: c1, c3, i2, m1, m2, m3, r3, and t1.

For Arm-based instances, AL2027 requires Graviton2 or later processors. a1 instances are not supported.

Launching AL2027 using the Amazon EC2 console

To launch an Amazon EC2 instance with an AL2027 AMI
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose AMIs.

  3. From the filter drop-down, choose Public images.

  4. In the search field, enter al2027-preview-ami.

    Note

    Make sure that amazon appears in the Owner alias column.

  5. Select an image from the list. Under Source, you can determine whether the AMI is standard or minimal. An AL2027 AMI name uses this format:

    al2027-preview-[ami || ami-minimal]-2027.0.[release build date].[build number]-kernel-[version]-[arm64 || x86_64]

  6. Choose Launch instance from AMI and configure the instance type, networking, storage, and key pair as needed.

For more information about launching Amazon EC2 instances, see Get started with Amazon EC2 Linux instances in the Amazon EC2 User Guide.

Launching AL2027 using the SSM parameter and Amazon CLI

In the Amazon CLI, you can use an AMI SSM parameter value to launch a new instance of AL2027. Use one of the following dynamic SSM parameter values with /aws/service/ami-amazon-linux-latest/ as the prefix:

  • al2027-preview-ami-kernel-default-arm64 for arm64 architecture

  • al2027-preview-ami-minimal-kernel-default-arm64 for arm64 architecture (minimal AMI)

  • al2027-preview-ami-kernel-default-x86_64 for x86_64 architecture

  • al2027-preview-ami-minimal-kernel-default-x86_64 for x86_64 architecture (minimal AMI)

Note

Each of the following items in the command is a placeholder. Replace them with your own values: m5.xlarge, us-east-1, my-key-pair, and sg-004a7650.

$ aws ec2 run-instances \ --image-id \ resolve:ssm:/aws/service/ami-amazon-linux-latest/al2027-preview-ami-kernel-default-x86_64 \ --instance-type m5.xlarge \ --region us-east-1 \ --key-name my-key-pair \ --security-group-ids sg-004a7650

The --image-id flag specifies the SSM parameter value. The resolve:ssm: prefix tells the Amazon CLI to resolve the parameter to the latest AMI ID at launch time.

The --instance-type flag specifies the type and size of the instance. This must be compatible with the AMI architecture you selected.

The --region flag specifies the Amazon Web Services Region where you create your instance.

The --key-name flag specifies the key pair used to connect to the instance using SSH.

The --security-group-ids flag specifies the security group that determines access permissions for inbound and outbound network traffic.

Important

The Amazon CLI requires that you specify an existing security group that allows access to the instance from your remote machine over port TCP:22. Without a specified security group, your new instance is placed in a default security group.

For more information, see Launching, listing, and terminating Amazon EC2 instances in the Amazon Command Line Interface User Guide.

Launching AL2027 using a specific AMI ID

You can launch a specific AL2027 AMI using the AMI ID. You can determine which AL2027 AMI ID is needed by looking at the AMI list in the Amazon EC2 console. Or, you can use Amazon Systems Manager. For more information, see Query for the latest Amazon Linux AMI IDs using Amazon Systems Manager Parameter Store.

Connect to your instance

After your instance is running, connect to it using SSH:

ssh -i <your-key.pem> ec2-user@<instance-public-ip>

The default user for AL2027 instances is ec2-user.