LoginSignup
0
0

More than 1 year has passed since last update.

Error: Reference to undeclared input variable

Last updated at Posted at 2021-08-20

netwrok.ftを作成して、terraform planを実行しました。
以下のエラーが発生。
変数定義ができていないことが原因


Error: Reference to undeclared input variable

  on network.tf line 12, in resource "aws_vpc" "vpc":
  12:     Name    = "${var.project}-${var.environment}-vpc"

terraform.tfvars ファイルが存在し値が設定されているか確認した。
問題ない。

main.tfファイルでの変数の定義を確認。
変数の名前がタイプミスでした。
修正して再度、terraform planを実行。
正常を確認。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0