Categorygithub.com/winebarrel/terraform-provider-op
repositorypackage
0.1.0
Repository: https://github.com/winebarrel/terraform-provider-op.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

terraform-provider-op

Terraform provider for 1Password CLI.

Preparation

Install 1Password CLI. see https://developer.1password.com/docs/cli/get-started/

Usage

terraform {
  required_providers {
    op = {
      source = "winebarrel/op"
    }
  }
}

provider "op" {
  # command = "/usr/local/bin/op"
}

data "op_item" "yahoo" {
  # id = "xxx..."
  title = "yahoo"
}

output "yahoo_username" {
  value = data.op_item.yahoo.username
}

output "yahoo_password" {
  value     = data.op_item.yahoo.password
  sensitive = true
}

Run locally for development

cp op.tf.sample op.tf
make tf-plan