1. Packages
  2. Kong
  3. Installation & Configuration
Kong v4.5.1 published on Friday, Jan 19, 2024 by Pulumi

Kong: Installation & Configuration

kong logo
Kong v4.5.1 published on Friday, Jan 19, 2024 by Pulumi

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

    Installation

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

    Configuring Credentials

    Pulumi relies on the Kong SDK to authenticate requests from your computer to Kong. Your credentials are never sent to pulumi.com. The Pulumi Kong Provider needs to be configured with Kong 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 variable KONG_ADMIN_ADDR, KONG_ADMIN_USERNAME and KONG_ADMIN_PASSWORD:

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

      $ pulumi config set kong:kongAdminUri XXXXXXXXXXXXXX
      $ pulumi config set kong:kongAdminUsername YYYYYYYYYYYYYY
      $ pulumi config set kong:kongAdminPassword YYYYYYYYYYYYYY --secret
      

    Remember to pass --secret when setting kong:kongAdminPassword so that it is properly encrypted. The complete list of configuration parameters is in the Kong provider README.

    kong logo
    Kong v4.5.1 published on Friday, Jan 19, 2024 by Pulumi