Hi All,
after creating aws resources using terrafom i am unable to executing get terraform from null_resource.
resource "null_resource" "next" {
provisioner "local-exec" {
command = "sleep 600"
}
}
resource "null_resource" "delay" {
provisioner "local-exec" {
command = "terraform output|sed 's/[][]//g'|sed 's/\"//g'|sed 's/\,//g'|grep -v private|sed '/^[[:space:]]*$/d'|sed -e 's/[\t ]//g;/^$/d' > list_privateips.txt"
}
triggers = {
"before" = null_resource.next.id
}
}
above script is not working.
could you please help us.