If you’re not already familiar with Infrastructure as Code, you’d do well to become familiar. IaC is source code that defines cloud resources. You commit the IaC files to source control, and those files are used to provision your cloud resources.
This approach is better than using the console because it is repeatable, versionable (is that a word?), and it provides you with a human readable definition of your cloud resources. If you ever need to recreate your app, you’ll be happy to have used IaC techniques. Ask me how I know.
Normally you’d start by writing IaC, then use that code to provision your cloud resources. You’re approaching it the other way around this time so you’ll have some work to do.
One option is to use your existing AWS workload to guide you while you manually create the IaC that matches your existing resources. Effectively you would be recreating your workload. You can develop it in parallel with your existing resources, then cut over from the manually provisioned workload to the IaC controlled resources. It’s a lot of work, but maybe worth it since you have only a few resources right now. If you have a database full of data, it might be a lot a lot of work.
Another option is to use tools to help you to derive the IaC from your existing resources. I don’t have experience with tools like that, but some of the other commenters have really good suggestions. It’s a difficult problem to solve, and it’ll have it’s challenges, but it might save you some work.
Me? I’d bite the bullet and go with the first option. You’ll have 100% control over the finished product and you’ll learn tons. But again, it will be a lot of work. In the end, you’ll be well positioned to continue evolving your AWS solution completely under IaC control and you’ll enjoy the benefits that come along with it.
You have several IaC tools to choose from. Terraform is popular. Cloud Formation and CDK are also popular. There are others, too.
If some of that didn’t make sense, let us know. We’ll do our best to clarify.
Use this opportunity to start using IaC. It’s worth the effort.