Ubuntu Pro expands Ubuntu LTS’ 5 years of coverage up to ten-year of security coverage with an additional support of 23,000 packages beyond the main operating system and it is free for use on up to 5 machines!
There are three ways to get Ubuntu Pro on AWS:
- Launching an Ubuntu Pro machine from the AWS Marketplace, which is ready to use through a PAYG charging model.
- Attaching an Ubuntu Pro token to any existing Ubuntu LTS server
- Upgrading to Ubuntu Pro using AWS License Manager
This tutorial will cover the second case: Activating Pro via token but with a little twist: using AWS Systems Manager to leverage automation and scalability.
There are many ways to automate actions on AWS Systems Manager but for this tutorial, we are going to use SSM Documents and the Run Command functionality as it will give us better control of execution, repeatability and version control.
As in a previous tutorial we already covered how to write SSM Documents and run them, we will jump directly into what we need for attaching tokens in a SSM Document format.
What you’ll need
- An AWS account
- An Ubuntu One account (you can create one on Ubuntu Pro | Ubuntu)
- Machines with SSM agent installed (available by default on Ubuntu 16.04 onwards). If it is properly configured, the servers will appear as Managed Nodes on AWS SSM Fleet Manager (see the reference links for more information)
- Basic understanding about writing and running SSM Documents (see the reference links for more information)
What you’ll learn
- How to get Pro tokens
- How to create SSM Documents with user-input parameters
- How to attach Pro tokens using SSM Documents on AWS