Terraform patterns for Boundary targets
Once you have defined a host, a host catalog, and a credential store, you can create targets.
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.
- Defined a host, host catalog, and credential store.
- (Optional) Configured a storage policy and storage bucket for any targets you want to enable for session recording.
Target configuration
This example creates a target with an injected username and password.
Note
Credential injection and SSH target types are only supported for HCP Boundary and Boundary Enterprise. You can configure credential brokering instead using brokered_credential_source_ids
.
Session recording configuration
This example enables session recording, but uses brokered credentials instead.
TCP target configuration
This example creates a tcp
target that connects to Windows servers using RDP.
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: