The CloudFormation Provider Development Toolkit allows you to author your own resource providers and modules that can be used by CloudFormation.
Why do you think that https://github.com/hashicorp/terraform-provider-azurerm is a good alternative to cloudformation-cli