/terraform-provider-authentik

Manage https://goauthentik.io with terraform.

Primary LanguageGoGNU General Public License v3.0GPL-3.0

authentik logo


Code Coverage Latest version CI Build status

Terraform Provider authentik

Tested against authentik main and stable, on terraform 1.2.1

Run the following command to build the provider

make build

Generate Documentation

Run make from the project root to regenerate the latest provider documentation

Testing

Start a local authentik instance by following https://goauthentik.io/docs/installation/docker-compose

Before starting the instance, add this static token to the .env file:

AUTHENTIK_TOKEN=this-password-is-for-testing-dont-use

Afterwards, tests can be run from your Editor or via CLI:

export TF_ACC=1
export AUTHENTIK_URL=http://localhost:9000
export AUTHENTIK_TOKEN=this-password-is-for-testing-dont-use
go test -timeout 30s ./... -count=1

Versioning

This provider's version is based on the authentik version it's tested against.

Provider version 2021.8.1 is tested against 2021.8.x.

Provider version 2021.8.2 is tested against 2021.8.x but has some bugfixes.