1. Packages
  2. FusionAuth
  3. Installation & Configuration
FusionAuth v5.1.0 published on Tuesday, Oct 22, 2024 by Theo Gravity

FusionAuth: Installation & Configuration

fusionauth logo
FusionAuth v5.1.0 published on Tuesday, Oct 22, 2024 by Theo Gravity

    Installation

    The FusionAuth provider is available as a package in all Pulumi languages:

    Configuring Credentials

    1. 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:

    1. Settings > API keys > add

    2. Create 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,
       });
      
    3. 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 },
       );
      
    fusionauth logo
    FusionAuth v5.1.0 published on Tuesday, Oct 22, 2024 by Theo Gravity