FusionAuth v5.1.0 published on Tuesday, Oct 22, 2024 by Theo Gravity
FusionAuth: Installation & Configuration
Installation
The FusionAuth provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
pulumi-fusionauth
- Python:
theogravity-pulumi-fusionauth
- Go:
https://github.com/theogravity/pulumi-fusionauth/tree/main/sdk/go/fusionauth
- .NET:
theogravity.Fusionauth
Configuring Credentials
- Export required variables:
$ export FUSION_AUTH_HOST_URL=<URL to your FusionAuth Instance>
$ export FUSION_AUTH_API_KEY=<API Key for FusionAuth APIs>
You can get / generate the API key by going to the FusionAuth UI:
Settings
>API keys
> addCreate an instance of the provider
import { Provider } from 'pulumi-fusionauth'; const fusionAuthProvider = new Provider('fusion-auth', { host: process.env.FUSION_AUTH_HOST_URL, apiKey: process.env.FUSION_AUTH_API_KEY, });
Create the FusionAuth resources and assign it the provider
// Create a new signing key const clientDataSigningKey = new FusionAuthKey( 'sample-jwt-key', { algorithm: 'RS256', name: 'Sample jwt key', length: 2048, }, { provider: fusionAuthProvider }, );