How to dump AWS resource definitions in CloudFormation format?

Solution 1:

The CloudFormer tool used to support that for a limited selection of resource types, but it is deprecated now. There seems to be a third-party successor: Former2 - see this Stack Overflow question for details: https://stackoverflow.com/questions/62943396/which-aws-services-does-aws-cloudformer-support