docs: add docs for account & auth method resources (#34)

This commit is contained in:
Jeff Malnick authored and GitHub committed 2020-09-15 20:43:27 -07:00
1 parent 975fd2e2d4
commit 3e43f1bb8c
2 files changed
+75

No files matched your search

@@ -0,0 +1,41 @@
---
layout: "boundary"
page_title: "Boundary: account_resource"
sidebar_current: "docs-boundary-account-resource"
description: |-
Account resource for the Boundary Terraform provider.
---
# boundary_account_resource
The account resource allows you to configure a Boundary account.
## Example Usage
```hcl
resource "boundary_organization" "main" {}
resource "boundary_auth_method" "password" {
scope_id = boundary_organization.main.id
type = "password"
}
resource "boundary_account" "jeff" {
auth_method_id = boundary_auth_method.password.id
type = "password"
login_name = "jeff"
password = "$uper$ecure"
}
```
## Argument Reference
The following arguments are required:
* `auth_method_id` - The resource ID for the authentication method.
* `type` - The resource type
The following arguments are optional:
* `description` - The account description.
* `name` - The account name. Defaults to the resource name.
* `login_name` - The login name for this account.
* `password` - The account password.
@@ -0,0 +1,34 @@
---
layout: "boundary"
page_title: "Boundary: auth_method_resource"
sidebar_current: "docs-boundary-auth-method-resource"
description: |-
Auth Method resource for the Boundary Terraform provider.
---
# boundary_auth_method_resource
The auth method resource allows you to configure a Boundary auth_method.
## Example Usage
```hcl
resource "boundary_organization" "main" {}
resource "boundary_auth_method" "password" {
scope_id = boundary_organization.main.id
type = "password"
}
```
## Argument Reference
The following arguments are required:
* `scope_id` - The scope ID.
* `type` - The resource type.
The following arguments are optional:
* `description` - The auth method description.
* `name` - The auth method name. Defaults to the resource name.
* `min_login_name_length` - The minimum login name length.
* `min_password_length` - The minimum password length.