Artifactory

Pulumi Official
Package maintained by Pulumi
v2.6.0 published on Thursday, Aug 11, 2022 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.