Merge pull request #35567 from bangjiehan/patch-1

Fix typo in null_resource.mdx
pull/35622/head
Craig Wright 2 years ago committed by GitHub
commit 02c2aae12d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save