You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.
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")}"
}
}
}
The text was updated successfully, but these errors were encountered: