Requirements
The provider can be configured to authenticate with a service account, a Connect server, or with your 1Password account details.- Service account
- Connect server
- Account details
1Password Service Accounts allow you to restrict the provider’s access to specific vaults in your 1Password account, so you can follow the principle of least privilege in your project.To use a service account with the 1Password provider for Pulumi, you’ll need:
Step 1: Install the 1Password provider for Pulumi
With a package manager
- Node.js
- Python
- Go
To use the provider with JavaScript or TypeScript in Node.js, install using either
npm or yarn:With the provider binary
To install the 1Password provider binary, use thepulumi plugin command:
Step 2: Configure the provider with your credentials
You can provide your 1Password credentials to Pulumi in the environment or in your Pulumi configuration. Your Pulumi configuration is a good option if you want to store your credentials alongside your Pulumi stack for multi-user access.- Service account
- Connect server
- Account details
- Create a service account or find the token for an existing service account. Make sure the service account has access to the appropriate vaults and adequate permissions in those vaults.
-
Provide the token to Pulumi using either an environment variable or your Pulumi configuration.
Environment variable
Pulumi configuration
Make sure to pass--secretwhen setting sensitive data. -
Install 1Password CLI in your PATH. If you install the CLI outside of your PATH, specify the path to your 1Password CLI binary using either an environment variable or your Pulumi configuration.
Environment variable
Pulumi configuration