github.com/terraform-linters/tflint@v0.51.2-0.20240520175844-3750771571b6/integrationtest/inspection/module/module.tf (about) 1 variable "unknown" {} 2 3 variable "instance_type" { 4 default = "t1.2xlarge" 5 } 6 7 module "instances" { 8 source = "./module" 9 10 unknown = var.unknown 11 enable = true 12 instance_type = var.instance_type 13 } 14 15 module "instances_for_each" { 16 source = "./module" 17 18 for_each = toset(["t1.4xlarge"]) 19 20 unknown = var.unknown 21 enable = true 22 instance_type = each.key 23 } 24 25 module "instances_with_annotations" { 26 source = "./module" 27 28 unknown = var.unknown 29 // tflint-ignore: aws_instance_example_type 30 enable = true 31 // tflint-ignore: aws_instance_example_type 32 instance_type = var.instance_type 33 } 34 35 module "ignored_instances" { 36 source = "./ignore_module" 37 38 instance_type = "t1.2xlarge" 39 }