Terraform Cloud has cost estimation built-in, but, in my experience, it's broken.
Since then, we have partnered with Hashicorp to build out their Run Tasks feature. It's still in beta, but more info about it here: https://www.hashicorp.com/blog/terraform-cloud-run-tasks-bet...
We have similar examples for GitLab (https://gitlab.com/infracost/infracost-gitlab-ci/-/tree/mast...) and Azure DevOps (https://github.com/infracost/infracost-azure-devops/tree/mas...).
Happy to help with any issues via infracost.io/community-chat