Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth0 terraform generate fails on custom domains import when no verified credit card exists #1102

Open
6 tasks done
thomas-auth0 opened this issue Nov 8, 2024 · 0 comments
Labels
bug This points to a verified bug in the code

Comments

@thomas-auth0
Copy link

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

Generating Terraform configuration from an existing tenant using auth0 terraform generate fails when fetching the auth0_custom_domain resources if there is no credit card verified for this account:

$ auth0 tf generate --output-dir tmp-tfgen
Fetching data from Auth0... failed

=== <redacted>.us.auth0.com error

 ▸    403 Forbidden: There must be a verified credit card on file to perform this operation.

Custom domains are free but a credit card verification is required for fraud prevention.

Expectation

If this error happens, it means that there are no custom domains to import (the feature is not enabled on this tenant). The CLI should skip auth0_custom_domain and continue with the importing of the other resources.

Reproduction

  1. Create a sample tenant and application using the Auth0 console
  2. Use the CLI to generate Terraform configuration for that application (following the documentation)

Auth0 CLI version

1.6.1

@thomas-auth0 thomas-auth0 added the bug This points to a verified bug in the code label Nov 8, 2024
@thomas-auth0 thomas-auth0 changed the title auth0 terraform generate fails when on custom domains import when no verified credit card exist auth0 terraform generate fails on custom domains import when no verified credit card exists Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This points to a verified bug in the code
Projects
None yet
Development

No branches or pull requests

1 participant