1. Packages
  2. Artifactory
  3. Installation & Configuration
artifactory v6.4.1 published on Monday, Mar 25, 2024 by Pulumi

Artifactory: Installation & Configuration

artifactory logo
artifactory v6.4.1 published on Monday, Mar 25, 2024 by Pulumi

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

    Installation

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

    Configuring Credentials

    Pulumi relies on the Artifactory SDK to authenticate requests from your computer to Artifactory. Your credentials are never sent to pulumi.com. The Pulumi Artifactory Provider needs to be configured with Artifactory 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 ARTIFACTORY_URL, and ARTIFACTORY_ACCESS_TOKEN (ARTIFACTORY_USERNAME and ARTIFACTORY_PASSWORD):

      $ export ARTIFACTORY_URL=XXXXXXXXXXXXXX
      $ export ARTIFACTORY_ACCESS_TOKEN=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 artifactory:url XXXXXXXXXXXXXX
      $ pulumi config set artifactory:accessToken YYYYYYYYYYYYYY --secret
      

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

    artifactory logo
    artifactory v6.4.1 published on Monday, Mar 25, 2024 by Pulumi