How would I migrate an SVN/Trac/Tomcat server instance to Amazon Linux 2?

We have a development EC2 instance, originally spun up (if memory serves) from a free canned AMI with Trac and SVN running under Amazon Linux, to which we added Tomcat.

Some time ago, I tried to set up an Amazon Linux 2 version of this, in an attempt to get Let’s Encrypt working through Certbot; this attempt failed miserably (fortunately, I was able to get Let’s Encrypt working through Lego).

Now that the original Amazon Linux is deprecated, I once again have a reason to migrate this instance to Amazon Linux 2. Can anybody give me guidance on how to do this?