1. Packages
  2. 1Password
1Password v1.1.4 published on Wednesday, Sep 4, 2024 by 1Password

1Password

onepassword logo
1Password v1.1.4 published on Wednesday, Sep 4, 2024 by 1Password

    The 1Password provider for Pulumi allows you to access and manage items in your 1Password vaults. You’ll need to configure the 1Password provider with credentials to access and manage items in 1Password.

    Example

    const pulumi = require("@pulumi/pulumi");
    const onepassword = require("@1password/pulumi-onepassword");
    
    const example = onepassword.getItem({
        vault: data.onepassword_vault.example.uuid,
        uuid: onepassword_item.demo_sections.uuid,
    });
    
    import * as pulumi from "@pulumi/pulumi";
    import * as onepassword from "@1password/pulumi-onepassword";
    
    const example = onepassword.getItem({
        vault: data.onepassword_vault.example.uuid,
        uuid: onepassword_item.demo_sections.uuid,
    });
    
    import pulumi
    import pulumi_onepassword as onepassword
    
    example = onepassword.get_item(vault=data["onepassword_vault"]["example"]["uuid"],
        uuid=onepassword_item["demo_sections"]["uuid"])
    
    package main
    
    import (
    
    	"github.com/1Password/pulumi-onepassword/sdk/go/onepassword"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := onepassword.LookupItem(ctx, &onepassword.LookupItemArgs{
    			Vault: data.Onepassword_vault.Example.Uuid,
    			Uuid:  pulumi.StringRef(onepassword_item.Demo_sections.Uuid),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    onepassword logo
    1Password v1.1.4 published on Wednesday, Sep 4, 2024 by 1Password