How do I upgrade an existing EC2 instance from Ubuntu 16.04 to 18.04 through CLI with custom Ubuntu 18.04 image?

Asked by MANZA

How do I upgrade an existing EC2 instance from Ubuntu 16 to 18 through CLI/ansible with our own Ubuntu 18.04 image?

Tried below steps and able to upgrade from 16 to 18.04 but it used ubuntu common image.
$ sudo apt update
$ sudo apt upgrade
$ sudo apt dist-upgrade
$ sudo apt-get autoremove
$ sudo apt install update-manager-core
$ sudo do-release-upgrade

But the requirement is to upgrade to 18.04 using custom AMI which is already created with specific requirements.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.