# Generate Terraform

### Execute Utility

Once Terraform Exporter Utility is configured, [export Environment Variables](https://docs.duplocloud.com/docs/automation-platform/terraform-support/install-terraform-exporter#prepare-environment-variable-in-bash) and execute listed commands.

> `cd tenant-terraform-generator`
>
> `make run`

![Utility  Execution in-progress](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F3hHv7lgoAjTsLHoHGDbc%2Fimage.png?alt=media\&token=578eccdd-8e1d-48a1-bda2-c78b4e9bee03)

### View the Output

New Folders would be available under `tenant-terraform-generator/target/<customer-name>/<tenant>`

![Target Folder View](https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FH4BwUmQHJCHTtBn9Xh3B%2Fimage.png?alt=media\&token=eda79d84-a4f4-4f5e-b9fa-c31872f0af8e)

Under `terraform` folder, **admin-tenant**, **aws-services** and **app** projects would be available. These projects would be referenced later to create new tenants and resources.

* **admin-tenant:**  This project manages the creation of DuploCloud tenant and tenant-related resources.
* **aws-services:** This project manages data services like Redis, RDS, Kafka, S3 buckets, Cloudfront, EMR and Elastic Search inside DuploCloud.
* **app:** This project manages DuploCloud services like EKS, ECS.
