Exclude entire resources by type
For more complex tenants, you may find yourself wanting to omit entire resource types. For example:- Enterprise tenant with thousands of organizations, where managing all would be operationally burdensome.
- CI/CD process only focuses on managing roles, and you want to exclude all others.
- Feature development pertains to hook, and you want to temporarily exclude all others to optimize performance.
AUTH0_EXCLUDED
or AUTH0_INCLUDED_ONLY
configuration properties. The AUTH0_EXCLUDED
configuration property excludes only the resource types provided to it. Inversely, the AUTH0_INCLUDED_ONLY
property excludes all properties except the ones defined. Exclusion works bi-directionally, that is, both when export from Auth0 and importing to Auth0, regardless if resource configuration files exist or not.
All supported resource values for exclusion: actions
, attackProtection
, branding
, clientGrants
, clients
, connections
, customDomains
, databases
, emailProvider
, emailTemplates
, guardianFactorProviders
, guardianFactorTemplates
, guardianFactors
, guardianPhoneFactorMessageTypes
, guardianPhoneFactorSelectedProvider
, guardianPolicies
, logStreams
, migrations
, organizations
, pages
, prompts
, resourceServers
, roles
, tenant
, triggers
.
Exclusion example
The following example shows how to excludeclients
, connections
, databases
, and organizations
from being managed by the Deploy CLI.
Inclusion example
The following example shows how to specify to only manageactions
, clients
and connections
by the Deploy CLI.
Exclude single resources by ID
Some resource types support exclusions of the individual resource by ID. This is useful if you work in a multi-environment context and wish to omit a production-specific resource from your lower-level environments. This method is supported for rules, clients, databases, connections and with theAUTH0_EXCLUDED_RULES
, AUTH0_EXCLUDED_CLIENTS
, AUTH0_EXCLUDED_DATABASES
, AUTH0_EXCLUDED_CONNECTIONS
, AUTH0_EXCLUDED_RESOURCE_SERVERS
configuration values respectively.
Example
Excluding resources by ID is being considered for deprecation in future major versions. See the resource exclusion proposal for more details.