-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow skipping export of Organizations #427
Comments
Thanks for raising this. I think this is a duplicate of #387 which I have just merged a relevant fix for. In short, excluding resources from the configuration-as-code files should exclude them from being handled by the deploy CLI. That is, as long as the data doesn't explicitly define those resources as an empty set and rather not defined at all, they should be skipped. I think what you've found is that organizations paired with the YAML format doesn't follow this pattern and that will be fixed in an upcoming release (#434). But something to remember is that as long as |
Good news, 7.5.0 has been released to address this. I encourage you to update and test. I'm closing this for now but please open a new ticket if you're still experiencing this issue. |
@willvedd to be clear - a big part of the issue for us is that the export (as opposed to the deploy) takes an extremely long time. I don't think that has been addressed. Is it worth keeping this issue open? |
Ah ok, my mistake! Resource exclusion on the export side is a commonly requested feature that's on our roadmap. We can certainly keep this open until it gets addressed more formally. |
@nathanKramer I've raised a #451 that may solve this issue. It would be great to receive your feedback since your use case would be enhanced by excluding all organizations. |
As proposed in the resource exclusion RFC, this has been added in the 7.7.0 release. You can bi-directionally exclude all organizations by leveraging the {
"AUTH0_DOMAIN": "<YOUR_DOMAIN>",
"AUTH0_CLIENT_ID": "<YOUR_CLIENT_ID>",
"AUTH0_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
"AUTH0_EXCLUDED": [ "organizations"]
} |
Thank you @willvedd!! this looks fantastic |
Describe the problem you'd like to have solved
Hi, I've recently updated the CLI to version 7, to allow exporting actions.
However, I'm having an issue where our tenant contains thousands of orgs.
The CLI now wants to export them along with their connections, which can't be done in a timely manner, and is not desired for our use-case.
My preference is to treat these Orgs as data, rather than as config that should be exported.
I'm wondering if there is any support for this.
(or if there are any suggestions for ergonomic work-arounds)
I can't find any evidence that this is supported, but I thought I would ask.
It's not clear to me whether it is safe to try to delete organizations from the resulting export, and then deploy, or if this would delete organizations. (This issue seems relevant: #387)
Describe the ideal solution
Some way to exclude organizations from the export.
e.g, an environment variable, or some kind of manifest that outlines the desired export)
Attempted work arounds
I tried dropping the
read:organizations
scope, but the export throws:The text was updated successfully, but these errors were encountered: