Is there any way that one can autogenerate Terraform code for all the existing resources in a Cloud Project?

I have deployed the cloud resources (GCP) via UI and now I want to generate terraform code for the same. Writing it manually, will take a good amount of time. Is there any way one can autogenerate the code for the cloud resources that are already created?

GitHub - GoogleCloudPlatform/terraformer: CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code is probably what you’re looking for.