2020-06-09 18:24:17 -07:00
|
|
|
---
|
2020-08-11 16:12:26 -07:00
|
|
|
layout: "boundary"
|
|
|
|
|
page_title: "Boundary: host_catalog_resource"
|
|
|
|
|
sidebar_current: "docs-boundary-host-catalog-resource"
|
2020-06-09 18:24:17 -07:00
|
|
|
description: |-
|
2020-08-11 16:12:26 -07:00
|
|
|
Host catalog resource for the Boundary Terraform provider.
|
2020-06-09 18:24:17 -07:00
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# host_catalog_resource
|
2020-08-11 16:12:26 -07:00
|
|
|
The host catalog resource allows you to configure a Boundary host catalog. Host catalogs
|
2020-06-09 18:24:17 -07:00
|
|
|
are always part of a project, so a project resource should be used inline or you should have
|
|
|
|
|
the project ID in hand to successfully configure a host catalog.
|
|
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
|
|
```hcl
|
2020-08-11 16:12:26 -07:00
|
|
|
resource "boundary_project" "example" {
|
2020-06-09 18:24:17 -07:00
|
|
|
description = "My first project!"
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-11 16:12:26 -07:00
|
|
|
resource "boundary_host_catalog" "example" {
|
2020-06-09 18:24:17 -07:00
|
|
|
name = "My catalog"
|
|
|
|
|
description = "My first host catalog!"
|
|
|
|
|
type = "Static"
|
2020-08-15 14:49:09 -07:00
|
|
|
scope_id = boundary_project.example.id
|
2020-06-09 18:24:17 -07:00
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
|
|
The following arguments are required:
|
|
|
|
|
* `type` - The host catalog type. Only `Static` (yes, title case) is supported.
|
2020-08-15 14:49:09 -07:00
|
|
|
* `scope_id` - The scope ID in which the resource is created.
|
2020-06-09 18:24:17 -07:00
|
|
|
|
|
|
|
|
The following arguments are optional:
|
|
|
|
|
* `name` - The host catalog name. Defaults to the resource name.
|
|
|
|
|
* `description` - The host catalog description.
|