Hydra is an open source OAuth2 and OpenID Connect server.
This is a Terraform provider to create OAuth Clients and Policies required by the services in an
infrastructure.
Available resources
Please have a look at the example configuration in example directory to check which options are available.
For a detailed explanation of each configuration option check hydra API documentation
Installation
Check terraform guide on installtion
Provider options
These default environment variables will be used if omitted from provider config block.
HYDRA_CLIENT_ID
HYDRA_CLIENT_SECRET
HYDRA_CLUSTER_URL
Running examples
To run examples in /examples
cd
into directory and issue following commands:
terraform plan
shows which changes it will bring
terraform apply
actually creates configured clients and policies