AUTH0_KEYWORD_REPLACE_MAPPINGS
configuration property needs to contain the appropriate mappings. Then, in the resource configuration files, keywords can be injected through one of two ways:
@@EXAMPLE_KEY@@
: Using the @
symbols causes the tool to perform a JSON.stringify
on your value before replacing it. So if your value is a string, the tool will add quotes; if your value is an array or object, the tool will add braces.##EXAMPLE_KEY##
: Using the #
symbol causes the tool to perform a literal replacement; it will not add quotes or braces.##
keyword syntax. This technique works for both the YAML and directory formats.
AUTH0_PRESERVE_KEYWORDS
boolean configuration property. By enabling this configuration, the Deploy CLI will attempt to preserve the keyword markers defined in your local configuration files during export.
The keyword preservation functionality will attempt to preserve as many keywords while also maintaining the accuracy of your resource configuration files. And it the majority of cases, it will work without any intervention by the user. However, some key limitations exist:
["http://site.com/logout", "localhost:3000/logout", "##LOGOUT_URL##"]
. This is because the ordering of these values are non-deterministic. Alternatively, to preserve these values, it is recommended to leverage the @@ARRAY_REPLACE@@
keyword replace syntax with the entire value.