Skip to content

Commit

Permalink
doc channges
Browse files Browse the repository at this point in the history
  • Loading branch information
papineni87 committed Oct 23, 2020
1 parent c7d4ce3 commit 8dc6d6b
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions website/docs/r/bigip_ltm_pool_attachment.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: |-
There are two ways to use ltm_pool_attachment resource, where we can take node reference from ltm_node or we can specify node directly with ip:port/fqdn:port which will also create node and atach to pool.


Pool attachment with node reference from ltm_node
Pool attachment with node directly taking ip:port/fqdn:port

```hcl
resource "bigip_ltm_monitor" "monitor" {
Expand All @@ -34,20 +34,14 @@ resource "bigip_ltm_pool" "pool" {
allow_nat = "yes"
}
resource "bigip_ltm_node" "node" {
name = "/Common/terraform_node"
address = "192.168.30.2"
}
resource "bigip_ltm_pool_attachment" "attach_node" {
pool = bigip_ltm_pool.pool.name
node = "${bigip_ltm_node.node.name}:80"
pool = bigip_ltm_pool.pool.name
node = "1.1.1.1:80"
}
```

Pool attachment with node directly taking ip:port/fqdn:port
```

Pool attachment with node reference from ltm_node ( This will be depreceated in future releases )

```hcl
resource "bigip_ltm_monitor" "monitor" {
Expand All @@ -65,12 +59,16 @@ resource "bigip_ltm_pool" "pool" {
allow_nat = "yes"
}
resource "bigip_ltm_pool_attachment" "attach_node" {
pool = bigip_ltm_pool.pool.name
node = "1.1.1.1:80"
resource "bigip_ltm_node" "node" {
name = "/Common/terraform_node"
address = "192.168.30.2"
}
```
resource "bigip_ltm_pool_attachment" "attach_node" {
pool = bigip_ltm_pool.pool.name
node = "${bigip_ltm_node.node.name}:80"
}
```

## Argument Reference

Expand Down

0 comments on commit 8dc6d6b

Please sign in to comment.