Skip to content

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

Merged
duedares-rvj merged 2 commits intoauth0:mainfrom
thomas-auth0:issue-tf-gen-custdomain-err
Dec 16, 2024
Merged

fix(terraform): Handle error when custom domain is not enabled#1103
duedares-rvj merged 2 commits intoauth0:mainfrom
thomas-auth0:issue-tf-gen-custdomain-err

Conversation

@thomas-auth0
Copy link
Copy Markdown
Contributor

🔧 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
@duedares-rvj duedares-rvj merged commit 8468c81 into auth0:main Dec 16, 2024
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.

3 participants