Converting existing manually created resources into Cloud formation templates

Is there a way to convert the existing manually created resources into Cloud formation templates?

https://aws.amazon.com/blogs/devops/building-aws-cloudformation-templates-using-cloudformer/|https://aws.amazon.com/blogs/devops/building-aws-cloudformation-templates-using-cloudformer/

I would caution, though: in every case I’ve seen, it’s much better to start from scratch with your IaC than to use this. Cloudformer will do what you want, but in a quite crappy way.

import might work for you too, depending on what and how many resources you need to get into cloudformation - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import.html

sure, and one more question
how can i use the static website bucket endpoint as Domain in the Cloud formation resource?

https://former2.com/