Ubuntu Pro is Canonical’s recommended choice for professional use. Not only it benefits from all Ubuntu LTS features that we all know and love, but it also comes with 10 years of maintenance and updates for the entire stack, from kernel—through live-patch updates—to apps such as NGINX, MongoDB, Redis, Kafka, NodeJS; using the same PAYG cost model that we are now used to, all by just using the good old apt package manager.
In this tutorial we are going to see how to maintain updated your Ubuntu Pro servers in an automated way, using AWS Systems Manager (SSM). It can also be applied to regular Ubuntu servers (even on premises).
For this exercise, we will use three fresh instances with different versions of Ubuntu Pro with no additional configurations added.
Please note that since Ubuntu 16.04 onward, each AWS-optimized version of Ubuntu Server comes with the SSM agent installed, so you don’t need to install it.
What you’ll learn
- How to create the role needed for your Ubuntu instance
- How to create an automated maintenance window in AWS Systems Manager
- How to run a shell command in AWS SSM Run Command.
What you’ll need
- Basic understanding of AWS: EC2, IAM Roles
- Some instances running to test with outbound access to port 443