From 2e698193b488d61c98f6f61f1357eba7caa5d4aa Mon Sep 17 00:00:00 2001 From: bangjiehan Date: Thu, 15 Aug 2024 09:45:00 +0800 Subject: [PATCH] Fix typo in null_resource.mdx --- .../docs/language/resources/provisioners/null_resource.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/language/resources/provisioners/null_resource.mdx b/website/docs/language/resources/provisioners/null_resource.mdx index 16c897a1e1..b91430807b 100644 --- a/website/docs/language/resources/provisioners/null_resource.mdx +++ b/website/docs/language/resources/provisioners/null_resource.mdx @@ -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)}", ] } }