Terraform patterns for Boundary users and auth methods
Boundary supports password, OIDC, and LDAP auth methods.
Requirements
This document assumes the reader has:
- An understanding of Terraform fundamentals
- An existing Boundary installation. Refer to Initialize Boundary to learn about deploying Boundary.
- Configured the Terraform Boundary provider.
- Created a scope to add the users and auth methods to.
Auth method configuration
Below is an example of creating a password auth method. Terraform creates the auth method in the scope that is specified by the scope_id
option.
LDAP auth method configuration
The next example demonstrates how to create an LDAP auth method.
Account and user configuration
After you create an auth method, you need to add accounts to it and create users to represent the accounts. Users and accounts are different constructs. A user is a "parent" object associated to one or more accounts created using a supported auth method.
This example creates 2 accounts using the password auth method and associated users.
More information
For more information about the Boundary resources mentioned in this topic, refer to the domain model documentation:
For more information about managing the following resources using Terraform, refer to the Boundary provider documentation:
Next steps
Once you have created users and auth methods, you may want to create groups for your users or configure RBAC to define the actions a user is allowed to take.