Hardened Ubuntu 22.04, 24.04 and 26.04 LTS AMIs on AWS: Guide
No longer open to new subscribers. The AWS Marketplace listing this guide was written for is closed to new subscriptions. If you already run it, your instances and this guide are unaffected. For what you can launch today, see cloudimg products.
Overview
This page is the entry point for the cloudimg Hardened Ubuntu 22.04, 24.04 & 26.04 LTS AMIs: Minimal, LVM, STIG AWS Marketplace listing. The listing is a single product that offers several products and releases as separate software versions. Subscribe once, then choose the version you want from the Software version list at launch, and open its guide below for the full setup and connection walk-through.
Deploy hardened Ubuntu instances on EC2 without building your own hardening pipeline. Every AMI boots secure by default: key-only SSH authentication with no default passwords, unique SSH host keys and machine ID generated on each instance's first boot, and the compliance evidence on the instance.
What cloudimg adds to every version - Built from the official Ubuntu cloud image, fully patched at build time and remediated with a published OpenSCAP profile from the SCAP Security Guide: CIS Level 1 Server on 22.04 and 24.04, the STIG profile on STIG-Hardened variants. Each version's release notes name the profile it applies. - Measured on each image as built: the pass rate is in every version's release notes (98% or more of scored rules on the CIS images built so far), and the full HTML report and the reason for each waived rule ship on the instance under /usr/share/doc/cloudimg/. - Unique SSH host keys and machine ID generated on every instance's first boot; key-only SSH as ubuntu, root locked, no default passwords, and no build residue or shared keys. - Hardened for EC2: IMDSv2 required, chrony on Amazon Time Sync, unattended security updates enabled, cloud-init and current kernels.
Pricing is metered hourly per EC2 instance type and is the same for every version in this listing. The recommended instance type is m5.large.
How to pick a version
- Open the listing on AWS Marketplace and choose View purchase options, then Subscribe. One subscription covers every product and release in the listing, and the free trial starts with it.
- Once the subscription is active, choose Launch your software.
- Choose One-click launch from AWS Marketplace (or Launch from EC2 Console for full control), then in Version choose the product and release you want. Each version is a separate software version, named
<distribution> <release>[ <variant>] - <date>, for exampleUbuntu 22.04 LTS LVM - YYYY-MM-DD. The date is when that version was added to the listing. - Choose your Region and an instance type (
m5.largeis recommended), your EC2 key pair and a security group that opens port 22 from your own network only, then choose Launch. - After launch, open the product's guide below for first login.
You can run several products from the same subscription: launch one instance per product, each from its own software version.
Releases and variants in this listing, newest release first:
- Ubuntu: 24.04 (LVM, Minimal); 22.04 (LVM, Minimal, STIG-Hardened)
- Ubuntu Server: 24.04 (standard); 22.04 (standard)
Security model
Every version in this listing follows the same model:
- Fully patched. Every package is updated when the image is built, superseded kernels are removed, and automatic security updates stay switched on.
- Key-only SSH. You sign in with your EC2 key pair as the distribution's default user. Password login is disabled, the root account is locked and no account has a password.
- Nothing shared between instances. No SSH keys, host keys, machine ID or credentials are baked into the image; each instance generates its own on first boot.
- IMDSv2. Launch with instance metadata version 2 (token required).
- Only port 22. Open SSH in your security group to your own network only.
- Benchmark hardening for Ubuntu 22.04 LTS STIG-Hardened: these versions are remediated against the named OpenSCAP profile; their guide shows the report.
Choose your product
| Distribution | Software version | Guide |
|---|---|---|
| Ubuntu | Ubuntu 22.04 LTS LVM | Open guide → |
| Ubuntu | Ubuntu 22.04 LTS Minimal | Open guide → |
| Ubuntu | Ubuntu 22.04 LTS STIG-Hardened | Open guide → |
| Ubuntu | Ubuntu 24.04 LTS LVM | Open guide → |
| Ubuntu | Ubuntu 24.04 LTS Minimal | Open guide → |
| Ubuntu Server | Ubuntu Server 22.04 LTS | Open guide → |
| Ubuntu Server | Ubuntu Server 24.04 LTS | Open guide → |
How to tell which version you launched
The version you chose is shown on the instance's launch record in the EC2 console (AMI name and description) and in your AWS Marketplace subscription. On the instance itself, cat /etc/os-release shows the distribution and release. Open the matching guide above for the rest of the walk-through.
Support
cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours. Raise a ticket through the Marketplace console or by email.
All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.