Carbonifer is a tool (written in Go) which can read Infra as Code files (Terraform) and estimate carbon emissions of such an infra.
It supports only Google Cloud but supporting AWS and Azure are on our short term roadmap
https://github.com/carboniferio/carbonifer/