FWIW I am running a two week old Ryzen 5 2400G and ASRock Fatal1ty X370 Gaming-ITX/ac setup with rock solid stability under Windows 10. I did end up having to run my 3200MHz memory at 2933Mhz to avoid some issues. This is the max memory speed the CPU supports anyways so I don't consider it a large loss. The ASRock published memory QVL agrees with my finding that 3200MHz isn't stable with the specific memory I'm using. See https://www.asrock.com/MB/AMD/Fatal1ty%20X370%20Gaming-ITXac...
What ASRock model are you using? Are you sure the culprit is the CPU or motherboard and not another component?
Terraform is another option and then there's the model we're actively moving towards at work: using Ansible to abstract and completely replace calls to CloudFormation with a combination of existing and bespoke modules to dynamically spin up the infrastructure we need.