1. Packages
  2. Keycloak
  3. Installation & Configuration
Keycloak v5.3.1 published on Monday, Mar 11, 2024 by Pulumi

Keycloak: Installation & Configuration

keycloak logo
Keycloak v5.3.1 published on Monday, Mar 11, 2024 by Pulumi

    The Pulumi Keycloak provider uses the Keycloak SDK to manage and provision resources.

    Installation

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

    Configuring Credentials

    Pulumi relies on the Keycloak SDK to authenticate requests from your computer to Keycloak. Your credentials are never sent to pulumi.com. The Pulumi Keycloak Provider needs to be configured with Keycloak credentials before it can be used to create resources.

    Once the credentials are obtained, there are two ways to communicate your authorization tokens to Pulumi:

    1. Set the environment variables KEYCLOAK_URL, KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_SECRET:

      $ export KEYCLOAK_URL=XXXXXXXXXXXXXX
      $ export KEYCLOAK_CLIENT_ID=YYYYYYYYYYYYYY
      $ export KEYCLOAK_CLIENT_SECRET=ZZZZZZZZZZZZZZ
      
    2. Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:

      $ pulumi config set keycloak:url XXXXXXXXXXXXXX
      $ pulumi config set keycloak:clientId YYYYYYYYYYYYYY --secret
      $ pulumi config set keycloak:clientSecret ZZZZZZZZZZZZZZ --secret
      

    Remember to pass --secret when setting keycloak:clientId and keycloak:clientSecret so that they are properly encrypted. The complete list of configuration parameters is in the Keycloak provider README.

    keycloak logo
    Keycloak v5.3.1 published on Monday, Mar 11, 2024 by Pulumi