You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
auth0 tf generate should use resource references rather than hard coded ids #1284
This pattern seems to be used throughout the generated code.
Expectation
It would be better if the resource shown above was generated with a reference to `auth0_action.addmetadata.id`:
```terraform
resource "auth0_trigger_actions" "post_login" {
trigger = "post-login"
actions {
display_name = "addMetadata"
id = auth0_action.addmetadata.id
}
}
Thank you for your suggestion and for highlighting the benefits of using resource references in the generated Terraform code.
The main goal of auth0 tf generate, as described in our documentation, is to produce a snapshot of your current Auth0 tenant configuration for backup, migration, or bootstrapping purposes. To keep the generated output simple and consistent with the actual tenant state, the tool outputs static resource IDs rather than Terraform references.
At this time, we do not plan to add support for generating references, We appreciate your understanding and feedback.
Moving to discussions to gather more feedback from the community about this requirement. If we see more interest or traction from other users, we’ll definitely revisit this and try to include it in our future planning.
Activity
ramya18101 commentedon Aug 1, 2025
Thank you for your suggestion and for highlighting the benefits of using resource references in the generated Terraform code.
The main goal of
auth0 tf generate, as described in our documentation, is to produce a snapshot of your current Auth0 tenant configuration for backup, migration, or bootstrapping purposes. To keep the generated output simple and consistent with the actual tenant state, the tool outputs static resource IDs rather than Terraform references.At this time, we do not plan to add support for generating references, We appreciate your understanding and feedback.
ramya18101 commentedon Aug 7, 2025
Moving to discussions to gather more feedback from the community about this requirement. If we see more interest or traction from other users, we’ll definitely revisit this and try to include it in our future planning.