Files
terraform-provider/docs/resources/app_connection_1password.md

2.3 KiB

page_title, subcategory, description
page_title subcategory description
kms_app_connection_1password Resource - terraform-provider App Connections Create and manage 1Password App Connection

kms_app_connection_1password (Resource)

Create and manage 1Password App Connection

Example Usage

terraform {
  required_providers {
    kms = {
      # version = <latest version>
      source = "hanzokms/kms"
    }
  }
}

provider "kms" {
  host = "https://kms.hanzo.ai" # Only required if using self hosted instance of Hanzo KMS, default is https://kms.hanzo.ai
  auth = {
    universal = {
      client_id     = "<machine-identity-client-id>"
      client_secret = "<machine-identity-client-secret>"
    }
  }
}

resource "kms_app_connection_1password" "one-password-demo" {
  name        = "1password-demo"
  description = "This is a demo 1password connection."
  method      = "api-token"
  credentials = {
    instance_url = "<https://1pass.example.com>"
    api_token    = "<API_TOKEN>"
  }
}

Schema

Required

  • credentials (Attributes) The credentials for the 1Password App Connection (see below for nested schema)
  • method (String) The method used to authenticate with 1Password. Possible values are: api-token
  • name (String) The name of the 1Password App Connection to create. Must be slug-friendly

Optional

  • description (String) An optional description for the 1Password App Connection.
  • project_id (String) The ID of the project to scope the app connection to. If not provided, the app connection will be scoped to the organization.

Read-Only

  • credentials_hash (String) The hash of the 1Password App Connection credentials
  • id (String) The ID of the app connection

Nested Schema for credentials

Required:

  • api_token (String, Sensitive) The API token to use for authentication. For more details, refer to the documentation here hanzo.ai/docs/integrations/app-connections/1password
  • instance_url (String, Sensitive) The URL of the 1Password Connect instance to connect to. For more details, refer to the documentation here hanzo.ai/docs/integrations/app-connections/1password