github.com/jpreese/tflint@v0.19.2-0.20200908152133-b01686250fb6/integration/path/module/ec2.tf (about)

     1  variable "root_suffix" {}
     2  variable "module_suffix" {}
     3  
     4  resource "aws_instance" "path_root" {
     5    ami = "ami-12345678"
     6    instance_type = "${path.root}/${var.root_suffix}"
     7  }
     8  
     9  resource "aws_instance" "path_module" {
    10    ami = "ami-12345678"
    11    instance_type = "${path.module}/${var.module_suffix}"
    12  }