mirror of
https://github.com/hashicorp/terraform.git
synced 2026-06-09 00:42:48 -04:00
Merge pull request #35567 from bangjiehan/patch-1
Fix typo in null_resource.mdx
This commit is contained in:
commit
02c2aae12d
1 changed files with 3 additions and 3 deletions
|
|
@ -32,18 +32,18 @@ resource "aws_instance" "cluster" {
|
|||
|
||||
resource "terraform_data" "cluster" {
|
||||
# Replacement of any instance of the cluster requires re-provisioning
|
||||
triggers_replace = aws_instance.cluster.[*].id
|
||||
triggers_replace = aws_instance.cluster[*].id
|
||||
|
||||
# Bootstrap script can run on any instance of the cluster
|
||||
# So we just choose the first in this case
|
||||
connection {
|
||||
host = aws_instance.cluster.[0].public_ip
|
||||
host = aws_instance.cluster[0].public_ip
|
||||
}
|
||||
|
||||
provisioner "remote-exec" {
|
||||
# Bootstrap script called with private_ip of each node in the cluster
|
||||
inline = [
|
||||
"bootstrap-cluster.sh ${join(" ", aws_instance.cluster.*.private_ip)}",
|
||||
"bootstrap-cluster.sh ${join(" ", aws_instance.cluster[*].private_ip)}",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue