I am new to terraform not able to solve this error
Error
Argument or block definition required
on main.tf line 77, in resource "null_resource" "default_provisioner":
An argument or block definition is required here
My code
resource "null_resource" "default_provisioner" {
host = "${aws_instance.testInstance.public_ip}"
type = "ssh"
user = "terraform" # as created in 'user_data'
private_key = "${file("/root/.ssh/id_rsa_terraform")}"
I am new to terraform not able to solve this error
Error Argument or block definition required on main.tf line 77, in resource "null_resource" "default_provisioner": An argument or block definition is required here
My code
resource "null_resource" "default_provisioner" {
triggers {
}
connection {
}
provisioner "remote-exec" {
} provisioner "ansible" {
extra_vars = { ansible_become_pass = "${file("/etc/ansible/become_pass")}" } }
}