Files
terraform-provider-threshold/docs/resources/credential_username_password_domain.md
T
HugoandApril-May 182352b6d4 feat(provider): Implement boundary_credential_username_password_domain resource
This resource creates a static "Username, Password & Domain" credential in
Boundary.

The "username" field is required. It can also contain the domain in one of two
formats:
  - "username@domain.com"
  - "domain.com\username"

The "password" field is required.

The "domain" field is optional but the domain data itself is required (ie. it
must be provided as part of the username or in the dedicated "domain" field)

Co-authored-by: April-May <18632637+AprilMay0@users.noreply.github.com>
2025-09-05 17:04:22 +01:00

2.8 KiB

page_title, subcategory, description
page_title subcategory description
boundary_credential_username_password_domain Resource - terraform-provider-boundary The username-password-domain credential resource allows you to configure a credential using a username, password and domain.

boundary_credential_username_password_domain (Resource)

The username-password-domain credential resource allows you to configure a credential using a username, password and domain.

Example Usage

resource "boundary_scope" "org" {
  name                     = "organization_one"
  description              = "global scope"
  scope_id                 = "global"
  auto_create_admin_role   = true
  auto_create_default_role = true
}

resource "boundary_scope" "project" {
  name                   = "project_one"
  description            = "My first scope!"
  scope_id               = boundary_scope.org.id
  auto_create_admin_role = true
}

resource "boundary_credential_store_static" "example" {
  name        = "example_static_credential_store"
  description = "My first static credential store!"
  scope_id    = boundary_scope.project.id
}

resource "boundary_credential_username_password_domain" "example" {
  name                = "example_username_password_domain"
  description         = "My first username password domain credential!"
  credential_store_id = boundary_credential_store_static.example.id
  username            = "my-username"
  password            = "my-password"
  domain              = "my-domain"
}

Schema

Required

  • credential_store_id (String) The credential store in which to save this username-password-domain credential.
  • password (String, Sensitive) The password of this username-password-domain credential.

Optional

  • description (String) The description of this username-password-domain credential.
  • domain (String) The domain of this username-password-domain credential. This field is required unless provided as part of the username field instead (see username field description).
  • name (String) The name of this username-password-domain credential. Defaults to the resource name.
  • username (String) This field is required even though it is marked as optional. The username of this username-password-domain credential. Can also contain a domain if provided as username@domain or domain\username

Read-Only

  • id (String) The ID of this username-password-domain credential.
  • password_hmac (String) The password hmac.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import boundary_credential_username_password_domain.example_username_password_domain <my-id>