# Auth0 Terraform Export Tenant Configuration into New Auth0 Tenant

**URL:** <https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869>\
**Category:** Get Help\
**Tags:** tenants, management-api\
**Created:** [March 13, 2025, 7:57pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869 "2025-03-13T19:57:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![edandrade](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/edandrade/32/72992_2.png) [@edandrade](https://community.auth0.com/u/edandrade)\
**Post date:** [March 13, 2025, 7:57pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869/1 "2025-03-13T19:57:26Z")

</div>

Hello, I recently went through the complete steps using Auth0 and Terraform documentation to successfully import my tenant configurations on to an auth0\_generated.tf file. Now that I have everything imported, how do I get those settings on to a new tenant. Do I logout of the Auth0 tenant I got the settings from, login to a new tenant and hit “Terraform Apply”? Do I change my machine to machine application details to a new tenant? Please any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 13, 2025, 10:55pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869/3 "2025-03-13T22:55:20Z")

</div>

Hi @edandrade

Welcome back to the Auth0 Community!

You should be able to change to the new tenant and apply the exported configuration from your main one.

You will need to create a new M2M application for the new tenant in order to apply the configuration to it.

If you have any other questions, feel free to leave a reply!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![edandrade](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/edandrade/32/72992_2.png) [@edandrade](https://community.auth0.com/u/edandrade)\
**Post date:** [March 14, 2025, 2:30pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869/4 "2025-03-14T14:30:51Z")

</div>

Hey Nik, thank you for your response. I created a new tenant and plugged in all the details from my new M2M application, but can’t seem to get the export to work. Do you know what the commands are to export the files or if there is some step I am missing? I have tried going through all the steps again from this documentation: [Terraform Registry](https://registry.terraform.io/providers/auth0/auth0/latest/docs/guides/generate_terraform_config), but have not been successful and keep running into an error. “Resource has no configuration” Please let me know what I could be missing.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 14, 2025, 3:35pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869/5 "2025-03-14T15:35:51Z")

</div>

Hi again.

Have you replaced the sensitive values available in the exported configuration as mentioned in the Terraform [guide](https://registry.terraform.io/providers/auth0/auth0/latest/docs/guides/generate_terraform_config#note-about-sensitive-values)?

> While the generated Terraform config appears complete, it cannot export sensitive values like secrets and keys.
> 
> If configuring the same tenant as the one exported, immediate alterations may not be necessary. However, when applying this configuration to other tenants, you might need to supplement those values after the fact to ensure proper operation. Review the `auth0_generated.tf` file for properties commented with `# sensitive`. These are fields that may require replacements.

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![edandrade](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/edandrade/32/72992_2.png) [@edandrade](https://community.auth0.com/u/edandrade)\
**Post date:** [March 18, 2025, 2:13pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869/6 "2025-03-18T14:13:51Z")

</div>

Hey Nik, sorry for the delay in my response. I was able to import almost all the configurations from my one tenant to the second tenant, however applications and forms were missing. I did change the #sensitive values for the application on the auth0\_generated.tf file, but they still not seem to be importing. Any suggestions?

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 19, 2025, 5:35pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869/7 "2025-03-19T17:35:12Z")

</div>

Hi again @edandrade

Sorry for the delayed response. I am still investigating the matter. However, as far as I know, the applications and form configuration should be imported .

Just to confirm, do applications and forms configuration appear in the generated file?

If you have any other updates or questions, let me know. I will come back as soon as possible with an update!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [March 25, 2025, 9:32pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869/8 "2025-03-25T21:32:05Z")

</div>

Hi @edandrade

I am sorry about the delayed response to your post.

As far as I have checked, when importing a configuration from a tenant, applications and forms should also be exported within it.

Do you still have issues with this matter at hand by any chance? If so, could you please provide me some updates? Are applications and forms configurations present inside the generated file or not?

Let me know if I can help with anything else at this time!

Kind Regards,  
Nik

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 8, 2025, 9:32pm UTC](https://community.auth0.com/t/auth0-terraform-export-tenant-configuration-into-new-auth0-tenant/183869/9 "2025-04-08T21:32:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
