How to migrate from Amazon Linux 1 to 2?

I have an AMI with some custom system configurations setup but it is on Amazon Linux 1. Is there an easy way to transfer over these configurations to Amazon Linux 2? I’ve only read that it can be done manually, which is unfortunate. I have a dockerized application which is easily transferrable, but there are security configurations on the host system that I would prefer not to redo from scratch.

Thanks in advance!

Depends on what type of configurations you’re talking about. If it’s some config files then you can most likely just copy them over.

With that said, you should take this as a golden opportunity to implement configuration management, for example Ansible.

You can try using this to help:

https://github.com/amazonlinux/upgrade-modules

Take a look at cloud-init scripts. I find it really helpful to make my implementations modular, ie if I switched to on-prem or google cloud tomorrow, I could do it relatively easily.

Ansible and SaltStack are worth a look.

Suggest try moving to ECS or Fargate and manage it all that way