I have resource "aws_instance" "webserver"
in my .tf file which contains provisioner "install-apache"
:
provider "aws" {
access_key = "ACCESS_KEY"
secret_key = "SECRET-KEY"
region = "us-east-1"
}
resource "aws_instance" "webserver" {
ami = "ami-b374d5a5"
instance_type = "t2.micro"
provisioner "install-apache" {
command = "apt-get install nginx"
}
}
After running terraform plan
I've got an error:
* aws_instance.webserver: provisioner install-apache couldn't be found
According to the terraform documentation everything looks fine.