Open lyz-code opened 1 year ago
I tried creating a new outpost for the docker connection but it didn't work for me. Only attaching to the default outpost did.
Same for me, ive tried thoroughly to spawn a functional additional outpost however only the default one works as expected, and that one cannot be referenced with authentik terraform provider. This is the only point of my authentik setup that cannot be configured with terraform.
It would be absolutely amazing if we could get a data source like this:
data."authentik_outpost"."outpost_default" = {
name = "authentik Embedded Outpost";
};
I would like to see the same as well. I am deploying via the Kubernetes Helm chart and while I could add a new outpost, I would very much like to use the embedded one if possible since it's there anyways. Either a data source or I think better yet, the ability to import the embedded outpost as a resource that could then be modified too would be ideal.
I was actually able to do this just fine after a little digging. The trick is just having to find the UUID first of the embedded outpost in your installation.
resource "authentik_outpost" "embedded_outpost" {
name = "authentik Embedded Outpost"
protocol_providers = []
}
.../api/v3/outposts/instances/?ordering=name&page=1&page_size=20&search=
"pk":"628249a8-b69f-4c6a-a15c-048ac37a0375"
terraform import authentik_outpost.embedded_outpost YOUR_UUID
. The import should succeed.terraform plan
should detect no drift. I was even able to remove a provider in the web console then run plan again and it detected drift as expected, so everything seems to be working as expected.+1 to using the "authentik Embedded Outpost" - either data source or import by name - since uuid changes
Hello! First I want to congratulate for the amazing authentik!! It's fabulous!
I need some help...I can create an application and proxy provider, and I want to attach the application to default outpost "authentik Embedded Outpost". I'm aware that this issue is similar to https://github.com/goauthentik/terraform-provider-authentik/issues/310 but the user there solved it creating a new outpost for k8s, I tried creating a new outpost for the docker connection but it didn't work for me. Only attaching to the default outpost did.
Could you evaluate to create a data source for
authentik_outpost
?