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 cli not importing email templates, hooks and rules #943

Open
6 tasks done
tranceporter opened this issue Apr 4, 2024 · 1 comment
Open
6 tasks done

auth0 cli not importing email templates, hooks and rules #943

tranceporter opened this issue Apr 4, 2024 · 1 comment
Labels
🪲 bug Something isn't working

Comments

@tranceporter
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 provider 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

Hello,

I am using latest cli (1.4.0) and latest tf provider version (1.2.0). I am using TF version 1.6.x. I have generated an M2M app for Terraform import with full access (All scopes checked) to Auth0 Management API. From what I can see, I have one "auth0_connection" of type email that has a default template (lots of flattened and escaped html), but there are no auth0_email_template resources or hooks or rules. I ran the cli command to list email templates, and I can see all of them.

image

Rules

image

I cannot seem to find cli command for showing hooks, so unsure how to list them. I have instead taken screenshots from UI.

image image

We are using SNS for SMS MFA, and none of that configuration seems to have been imported. I have tried adding the --debug flag to auth0 tf generate command, and I do not get any errors (in fact there is no debug output)

image

Can you please guide me?

Thanks,
Shreyas

Expectation

All resources should be imported into terraform by Auth0 CLI. Since hooks and rules will not be deprecated by Nov 2024, we should still have time to migrate them over.

Reproduction

Given that auth0 cli has full access to Auth0 Management API, auth0 tf generate should import all resources in tf configuration.

Auth0 Terraform Provider version

1.2.0

Terraform version

1.6.4

@tranceporter tranceporter added the 🪲 bug Something isn't working label Apr 4, 2024
@tranceporter
Copy link
Author

To add to the above, I just checked the auth0 cli page, and none of the missing resources above seem to be listed in auth0 tf generate docs

--force Skip confirmation.
-o, --output-dir string Output directory for the generated Terraform config files. If not provided, the files will be saved in the current working directory. (default "./")
-r, --resources strings Resource types to generate Terraform config for. If not provided, config files for all available resources will be generated. (default [auth0_action,auth0_attack_protection,auth0_branding,auth0_client,auth0_client_grant,auth0_connection,auth0_custom_domain,auth0_email_provider,auth0_guardian,auth0_organization,auth0_pages,auth0_prompt,auth0_prompt_custom_text,auth0_resource_server,auth0_role,auth0_tenant,auth0_trigger_actions])

Does this mean I cannot import them? Or maybe I need an older version of cli?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant