Auth0-deploy-cli latest version of action module

Hi @gerardino.illescas

Welcome to the Auth0 Community!

I understand that you are looking for a version control option in the action module when using auth0-deploy-cli.

With the use of AUTH0_KEYWORD_REPLACE_MAPPINGS you are able to parameterize the module version number in your tenant.yaml and inject the actual latest version dynamically. The correct mappings have to be set in this configuration property, in the resource configuration files, from where keywords can be injected through one of two ways:

  1. @@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.
  2. ##EXAMPLE_KEY##: Using the # symbol causes the tool to perform a literal replacement; it will not add quotes or braces.

As outlined in the linked documentation, your config.json file should look like so:

{
  "AUTH0_DOMAIN": "test-tenant.us.auth0.com",
  "AUTH0_CLIENT_ID": "FOO",
  "AUTH0_CLIENT_SECRET": "BAR",
  "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
    "ENVIRONMENT": "dev",
    "ALLOWED_LOGOUT_URLS": ["https://dev-test-site.com/logout", "localhost:3000/logout"],
    "ALLOWED_ORIGINS": ["https://dev-test-site.com", "localhost:3000"]
  }
}

Allow me to share some additional resources which can be useful for solving the issue:

Let us know if the provided information have helped you achieve dynamic version control.

Best regards,
Gerald