mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-13 01:00:50 -04:00
39 lines
852 B
Markdown
39 lines
852 B
Markdown
---
|
|
layout: "consul"
|
|
page_title: "Consul: consul_node"
|
|
sidebar_current: "docs-consul-resource-node"
|
|
description: |-
|
|
Provides access to Node data in Consul. This can be used to define a node.
|
|
---
|
|
|
|
# consul_node
|
|
|
|
Provides access to Node data in Consul. This can be used to define a
|
|
node. Currently, defining health checks is not supported.
|
|
|
|
## Example Usage
|
|
|
|
```hcl
|
|
resource "consul_node" "foobar" {
|
|
address = "192.168.10.10"
|
|
name = "foobar"
|
|
}
|
|
```
|
|
|
|
## Argument Reference
|
|
|
|
The following arguments are supported:
|
|
|
|
* `address` - (Required) The address of the node being added to,
|
|
or referenced in the catalog.
|
|
|
|
* `name` - (Required) The name of the node being added to, or
|
|
referenced in the catalog.
|
|
|
|
## Attributes Reference
|
|
|
|
The following attributes are exported:
|
|
|
|
* `address` - The address of the service.
|
|
* `name` - The name of the service.
|