Warning, /frameworks/syntax-highlighting/autotests/input/test.tf is written in an unsupported language. File is not indexed.

0001 # this is a comment
0002 terraform {
0003   required_providers {
0004     local = {
0005       source = "hashicorp/local"
0006     }
0007   }
0008   backend "http" {
0009   }
0010 }
0011 
0012 variable "variable" {
0013   type    = list(string)
0014   default = ["a", "b", "c"]
0015 }
0016 
0017 locals {
0018   a = 1
0019   b = "aaaa"
0020   c = true
0021 }
0022 
0023 
0024 provider "aws" {
0025 }
0026 
0027 module "module_each" {
0028   for_each = toset(local.a)
0029   source   = "module/${var.interpolation}/end"
0030 }
0031 
0032 module "module_count" {
0033   depends_on = [module.module_each]
0034   count      = 1
0035   source     = "module/path"
0036   something  = count.index
0037 }
0038 
0039 output "output" {
0040   value = [local.a, var.a]
0041 }