question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a way to exclude all of an object during a0deploy import

See original GitHub issue

Describe the problem you’d like to have solved

I would like to be able to exclude all of certain configuration objects during import without having to specify individual values. This is especially true of Enterprise connections. Currently, I have to specify the following in my import config to avoid importing them:

  "AUTH0_EXCLUDED_CONNECTIONS": [
        "9395127f-4853-4842-8c2b-2be4135fa89",
        "9563eb0b-accc-489d-b03c-f6373d0ed0a",
        "f0272ae7-9fea-4e0a-b856-9b360250b5a",
        "9cab3ff8-ff15-410a-b8b9-816a7151b4f",
        "614d9405-77c1-4239-bdda-4ca306bd36c",
        "89af4988-4d68-476c-b4c6-c476835088f",
        "test"
   ]

This is error prone and burdensome to maintain.

Describe the ideal solution

I would like the CLI to support wildcards. Here are two examples.

Exclude all connections

  "AUTH0_EXCLUDED_CONNECTIONS": [ "*" ]

Exclude some based on partial name match.

  "AUTH0_EXCLUDED_CONNECTIONS": [ 
    "test*",
    "expermiental*"
 ]

Alternatives and current work-arounds

My only alternative right now is to explicitly list every connection I want to exclude.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
willveddcommented, Mar 14, 2022

@stuarthadfieldglobality Appreciate your interest in the library and for providing your feedback!

I absolutely agree that resource exclusion is a bit of a sore spot with this project. It should be a first-class feature of this utility and until now hasn’t gotten the attention it deserved. The three issues you referenced above are just the ones that are open, there are several other closed duplicates.

Speaking candidly here, this repo just recently got more formal resourcing and attention, which means that our team is still finding our bearings in terms of stability and roadmap. Progress is modest but rest assured we’re doing our best to identify the highest impact work, this issue included.

FWIW, I’m looking into a more formal method of exclusion as we speak. I still won’t provide a firm date, but I hope that you can hold patient for another week because I’d really like to get your feedback on a proposal I’m drafting.

In terms of workarounds, I regretfully have no suggestions other than adopting the Auth0 Terraform Provider. If you already use Terraform in your development workflows, it should be a frictionless method of managing your config.

2reactions
benwozniakcommented, Dec 7, 2021

+1 would love to see this, the “EXCLUDED_PROPS” section unfortunately does not work. I am trying to import my tenant but cannot because of enterprise connections.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import/Export Tenant Configuration to Directory Structure - Auth0
Learn how to use the directory option for importing and exporting tenant configurations with the Auth0 Deploy CLI Tool.
Read more >
Auth0-deploy-cli - npm.io
The auth0-deploy-cli tool supports the importing and exporting of Auth0 ... -o path/to/export Dump Auth0 config to folder in YAML format a0deploy export...
Read more >
How to exclude property files in a jar using Maven
This page shows how to exclude property file from the final build. The final build can be jar file or war file or...
Read more >
Getting to know Auth0 Deploy CLI with a practical scenario
Don't manage your Auth0 tenant directly through the console. Instead, do it through Auth0 Deploy CLI with ease!
Read more >
auth0-deploy-cli: Versions - Openbase
Returning all branding setting when using YAML [#666] ... Resource exclusion respected during import even if resource configuration exists [#545] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found