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

fix(terraform): Handle error when custom domain is not enabled #1103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thomas-auth0
Copy link

🔧 Changes

Fix for #1102
Skip the generation of custom domains resources if the feature is not activated yet on the tenant:

$ 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.

📚 References

https://auth0.com/docs/api/management/v2/custom-domains/post-verify
#854

🔬 Testing

Added unit test and tested manually.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@thomas-auth0 thomas-auth0 requested a review from a team as a code owner November 8, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant