Viewing docs for 1Password v1.1.4
published on Wednesday, Sep 4, 2024 by 1Password
published on Wednesday, Sep 4, 2024 by 1Password
1Password
I want to use the Pulumi 1Password package (onepassword) in my project.
## Provider details
- Package: onepassword
- Version: v1.1.4
- Publisher: 1Password
- Source: pulumi
- Repository: https://github.com/1Password/pulumi-onepassword
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/1Password/onepassword/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/1Password/onepassword/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/1Password/onepassword/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/1Password/onepassword/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for 1Password v1.1.4
published on Wednesday, Sep 4, 2024 by 1Password
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
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
})
}
Viewing docs for 1Password v1.1.4
published on Wednesday, Sep 4, 2024 by 1Password
published on Wednesday, Sep 4, 2024 by 1Password
