LoginSignup
3
3

More than 5 years have passed since last update.

Terraformを 0.6 から 0.7 にバージョンアップしたら dot indexing が使えなくなっていた

Posted at

参考

variables.tf

variable "vpc" {
    default = {
        cidr_block = "10.30.0.0/16"
    }
}

before

resource "aws_vpc" "main" {
    cidr_block           = "${var.vpc.cidr_block}"
}

after

resource "aws_vpc" "main" {
    cidr_block           = "${lookup(var.vpc, "cidr_block")}"
}

こんな感じで書き直してた。みんな知ってた?

3
3
1

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
3
3