Skip to content

auth0 terraform gen does no longer create auth0_generated.tf file. #1499

@MathieuAYounited

Description

@MathieuAYounited

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this project and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

auth0 terraform gen does no longer create auth0_generated.tf file.

Giving more context :
auth0 version 1.29.0 9013b72

I use environment variables AUTH0_DOMAIN, AUTH0_CLIENT_ID and AUTH_CLIENT_SECRET that seems valid and refers to an application that have all rights.

I also tried in an empty folder to be sure and also on several tenants.

However, I still get this result:

Fetching data from Auth0... done
 ▸    Output directory "./" is not empty. Proceeding will overwrite the auth0_main.tf, auth0_import.tf and auth0_generat Are you sure you want to proceed? Yes
Generating Terraform configuration... failed
 ▸    Terraform resource config generated successfully but there was an error with terraform plan.


 ▸    Run ./terraform plan to troubleshoot


 ▸    Once the plan succeeds, run ./terraform apply to complete the import.


 ▸    The terraform binary and auth0_import.tf files can be deleted afterwards.

I also tried to specify --Debug or a terraform version with -v but nothing changed.

Expectation

When I use the command line: auth0 terraform gen, I should also get auth0_generated.tf files.

Reproduction

  1. Given I have a configured application with all rights to the managment API
  2. And Environment variables AUTH0_DOMAIN, AUTH0_CLIENT_ID, AUTH0_CLIENT_SECRET refers to this application
  3. When I use the Auth0 CLI with the command: auth0 terraform gen
  4. Then I should get all files including auth0_generated.tf

Auth0 CLI version

1.29.0 9013b72

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions