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.
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
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, but have not been successful and keep running into an error. “Resource has no configuration” Please let me know what I could be missing.
Hi again.
Have you replaced the sensitive values available in the exported configuration as mentioned in the Terraform guide?
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
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?
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
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