You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a new tenant with Terraform and have that one be the default one instead of authentik-default without having to manually mark it as the non-default (or having to terraform import it). Right now if I try to do it, I get an error saying that only one tenant can be the default, and Terraform refuses to create the resource.
Would it be possible to either make the behavior of default = true such that if only authentik-default exists the provider makes the new one the default OR to have an explicit force_default field that will trigger this behavior?
I know that the behavior can get a little more complicated when having more than one non-default tenants and I'm not sure how that could be handled. Maybe just documenting that you can only use default = true (or force_default = true) on one authentik_tenant instance, and/or use ignore_changes on all the other ones?
The text was updated successfully, but these errors were encountered:
An alternative would be an environment variable for docker-compose to choose if the tenant "authentik-default" should be default. The default could be true. This would keep everything as infrastructure-as-code.
I would like to create a new tenant with Terraform and have that one be the default one instead of
authentik-default
without having to manually mark it as the non-default (or having toterraform import
it). Right now if I try to do it, I get an error saying that only one tenant can be the default, and Terraform refuses to create the resource.Would it be possible to either make the behavior of
default = true
such that if onlyauthentik-default
exists the provider makes the new one the default OR to have an explicitforce_default
field that will trigger this behavior?I know that the behavior can get a little more complicated when having more than one non-default tenants and I'm not sure how that could be handled. Maybe just documenting that you can only use
default = true
(orforce_default = true
) on oneauthentik_tenant
instance, and/or useignore_changes
on all the other ones?The text was updated successfully, but these errors were encountered: