The best way is to use Terraform. You can find a sample Terraform files created by HashiCorp here.
Also, I see a community member posted one.
You can leverage those sample configurations as a starting point to create customized Terraform configurations.