--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "boundary_credential_username_password Resource - terraform-provider-boundary" subcategory: "" description: |- The username/password credential resource allows you to configure a credential using a username and password pair. --- # boundary_credential_username_password (Resource) The username/password credential resource allows you to configure a credential using a username and password pair. ## Example Usage ```terraform 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" "example" { name = "example_username_password" description = "My first username password credential!" credential_store_id = boundary_credential_store_static.example.id username = "my-username" password = "my-password" } ``` ## Schema ### Required - `credential_store_id` (String) The credential store in which to save this username/password credential. - `password` (String, Sensitive) The password of this username/password credential. - `username` (String) The username of this username/password credential. ### Optional - `description` (String) The description of this username/password credential. - `name` (String) The name of this username/password credential. Defaults to the resource name. ### Read-Only - `id` (String) The ID of this username/password credential. - `password_hmac` (String) The password hmac. ## Import Import is supported using the following syntax: ```shell terraform import boundary_credential_username_password.example_username_password ```