Artifactory: Installation & Configuration
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:
- JavaScript/TypeScript:
@pulumi/artifactory
- Python:
pulumi-artifactory
- Go:
github.com/pulumi/pulumi-artifactory/sdk/go/artifactory
- .NET:
Pulumi.Artifactory
- Java:
com.pulumi/artifactory
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:
Set the environment variables
ARTIFACTORY_URL
, andARTIFACTORY_ACCESS_TOKEN
(ARTIFACTORY_USERNAME
andARTIFACTORY_PASSWORD
):$ export ARTIFACTORY_URL=XXXXXXXXXXXXXX $ export ARTIFACTORY_ACCESS_TOKEN=YYYYYYYYYYYYYY
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.