0
我在其中包含我.tf文件有resource "aws_instance" "webserver"
provisioner "install-apache"
:Terraform:供應方找不到
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"
}
}
運行terraform plan
後,我得到了一個錯誤:
* aws_instance.webserver: provisioner install-apache couldn't be found
根據到terraform documentation一切看起來不錯。
好吧,看來我跳過了文檔中的重要部分。謝謝你指點我這個部分! :) –