Merge pull request #35567 from bangjiehan/patch-1

Fix typo in null_resource.mdx
This commit is contained in:
Craig Wright 2024-08-20 14:17:28 -07:00 committed by GitHub
commit 02c2aae12d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)}",
]
}
}