89 lines
2.1 KiB
Markdown
89 lines
2.1 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "boundary_host_set Resource - terraform-provider-boundary"
|
|
subcategory: ""
|
|
description: |-
|
|
Deprecated: use boundary_host_set_static instead.
|
|
---
|
|
|
|
# boundary_host_set (Resource)
|
|
|
|
Deprecated: use `boundary_host_set_static` instead.
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
resource "boundary_scope" "org" {
|
|
name = "organization_one"
|
|
description = "My first 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_host_catalog" "static" {
|
|
type = "static"
|
|
scope_id = boundary_scope.project.id
|
|
}
|
|
|
|
resource "boundary_host" "first" {
|
|
type = "static"
|
|
name = "host_1"
|
|
description = "My first host!"
|
|
address = "10.0.0.1"
|
|
host_catalog_id = boundary_host_catalog.static.id
|
|
scope_id = boundary_scope.project.id
|
|
}
|
|
|
|
resource "boundary_host" "second" {
|
|
type = "static"
|
|
name = "host_2"
|
|
description = "My second host!"
|
|
address = "10.0.0.2"
|
|
host_catalog_id = boundary_host_catalog.static.id
|
|
scope_id = boundary_scope.project.id
|
|
}
|
|
|
|
resource "boundary_host_set" "web" {
|
|
host_catalog_id = boundary_host_catalog.static.id
|
|
type = "static"
|
|
host_ids = [
|
|
boundary_host.first.id,
|
|
boundary_host.second.id,
|
|
]
|
|
}
|
|
```
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
## Schema
|
|
|
|
### Required
|
|
|
|
- `host_catalog_id` (String) The catalog for the host set.
|
|
- `type` (String) The type of host set
|
|
|
|
### Optional
|
|
|
|
- `description` (String) The host set description.
|
|
- `host_ids` (Set of String) The list of host IDs contained in this set.
|
|
- `name` (String) The host set name. Defaults to the resource name.
|
|
|
|
### Read-Only
|
|
|
|
- `id` (String) The ID of the host set.
|
|
|
|
## Import
|
|
|
|
Import is supported using the following syntax:
|
|
|
|
```shell
|
|
terraform import boundary_host_set.foo <my-id>
|
|
```
|