terraform-linters / tflint

A Pluggable Terraform Linter
Mozilla Public License 2.0
4.86k stars 354 forks source link

set specific workspace to lint #1398

Closed mldevpants closed 2 years ago

mldevpants commented 2 years ago

I use workspaces to define various configurations per given stage level: dev, lt, qa, staging, prod. in ci for terraform I use TF_WORKSPACE env variable to set the desired workspace which is defined per given stage name accordingly. How do I let tflint know what workspace name to use per given test? I couldn't find anywhere anything about it (it is not for remote) I tried to use the same env var, I tried --var='terraform.workspace=prod' I set some of the ec2 instances types with wrong names and nothing. I use docker bundle for it after terraform init; docker run --rm -v $(pwd):/data -e TF_WORKSPACE=prod -t ghcr.io/terraform-linters/tflint-bundle --module --enable-plugin=aws --var='terraform.workspace=prod'

Thanks

mldevpants commented 2 years ago

Upon looking at the debug output, it's skipping a lot of values, those I see that terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod is set; is it possible that locals are not parsed by tflint correctly, most of the debug output looks like this: runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:161. TFLint ignores unevaluable expressions. This is my locals with some reductions for sensitive info:

locals {
  env = {

    prod = {
      vpc_cidr_block                   = cidrsubnet(var.vpc_cidr, 2, 0)
      rds_instance_class               = var.rds_instance_class_prod
      rds_allocated_storage            = var.rds_allocated_storage_prod
      rds_max_allocated_storage        = var.rds_max_allocated_storage_prod
      rds_multi_az                     = var.rds_multi_az_prod
      rds_parameters                   = var.rds_parameters_prod
      rds_create_cloudwatch_log_group  = var.rds_create_cloudwatch_log_group_prod
      rds_performance_insights_enabled = true
      rds_create_monitoring_role       = true
      ec2_create_spot_instance         = false
      ec2_instance_type                = "m6i.large"
      ec2_ebs_block_volume_size        = 100

    }
    qa = {
      vpc_cidr_block            = cidrsubnet(var.vpc_cidr, 2, 2)
      rds_instance_class        = var.rds_instance_class_qa
      rds_allocated_storage     = var.rds_allocated_storage_qa
      rds_max_allocated_storage = var.rds_max_allocated_storage_qa
      rds_multi_az              = var.rds_multi_az_qa
      rds_parameters            = var.rds_parameters_qa
    }
    dev = {
      vpc_cidr_block            = cidrsubnet(var.vpc_cidr, 2, 3)
      rds_instance_class        = var.rds_instance_class_dev
      rds_allocated_storage     = var.rds_allocated_storage_dev
      rds_max_allocated_storage = var.rds_max_allocated_storage_dev
      rds_multi_az              = var.rds_multi_az_dev
      rds_parameters            = var.rds_parameters_dev
    }

    default = {
      project                                   = var.project
      app                                       = var.app
      sub_count                                 = 2
      ca_domain_name                            = var.ca_domain_name
      rds_create_kms_key                        = true
      rds_publicly_accessible                   = true
      rds_create_random_password                = false
      rds_port                                  = var.rds_port
      rds_backup_retention_period               = 7
      rds_create_cloudwatch_log_group           = false
      rds_performance_insights_enabled          = false
      rds_create_monitoring_role                = false
      rds_performance_insights_retention_period = 7
      rds_monitoring_interval                   = 60
      rds_monitoring_role_name                  = "${var.project}-${var.app}-${lower(terraform.workspace)}-rds-monitoring-role"
      rds_monitoring_role_description           = "${var.project}-${var.app}-${lower(terraform.workspace)} RDS Monitoring role"
      rds_auto_minor_version_upgrade            = true
      ec2_aws_eip                               = true
      ec2_instance_type                         = "t4i.medium"
      rds_create_db_subnet_group                = true
      ec2_associate_public_ip_address           = true
      ec2_root_block_device_encrypted           = true
      ec2_root_block_volume_type                = "gp3"
      ec2_root_block_throughput                 = 200
      ec2_root_block_volume_size                = 20
      ec2_ebs_block_device_encrypted            = true
      ec2_ebs_block_volume_type                 = "gp3"
      ec2_ebs_block_throughput                  = 200
      ec2_ebs_block_volume_size                 = 40
      ec2_create_spot_instance                  = true
      ec2_filter_architecture_type              = "x86_64" # Supports arm64 or x86_64
      ec2_spot_price                            = null
      ec2_spot_wait_for_fulfillment             = null
      ec2_spot_type                             = null # i.e. persistent
      ec2_spot_instance_interruption_behavior   = null # i.e. stop / terminate
      alb_load_balancer_type                    = "application"
      alb_ssl_policy                            = "ELBSecurityPolicy-TLS-1-2-Ext-2018-06" # Execute aws elbv2 describe-ssl-policies to list all available ssl policies, go to to compare: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies
      alb_drop_invalid_header_fields            = true
    }

  }

  environmentvars = "${contains(keys(local.env), terraform.workspace)}" ? terraform.workspace : "default"
  workspace       = merge(local.env["default"], local.env[local.environmentvars])
  environment     = lower(terraform.workspace)
  project         = local.workspace["project"]
  app_id          = "${local.project}-${local.workspace["app"]}"
  vpc_name        = "${local.app_id}-vpc-${local.environment}"
  rds_name        = "${local.app_id}-rds-${local.environment}"
  ec2_name        = local.workspace["ec2_create_spot_instance"] ? "${local.app_id}-${local.environment}-ec2-spot" : "${local.app_id}-${local.environment}-ec2"
  public_subnets  = cidrsubnets(cidrsubnet(local.workspace["vpc_cidr_block"], 1, 0), 1, 1)
  private_subnets = cidrsubnet(local.workspace["vpc_cidr_block"], 2, 2)
  db_subnets      = cidrsubnet(local.workspace["vpc_cidr_block"], 2, 3)
  rds_multi_az    = local.workspace["sub_count"] > 1 ? true : false

  # aws_profile            = "${local.app_id}-${lower(terraform.workspace)}"
  # rds_snapshot           = var.rds_use_snapshot ? (lower(terraform.workspace) == "lt" ? data.aws_db_snapshot.db_snapshot_dev[0].id : data.aws_db_snapshot.db_snapshot[0].id) : null

  tags = {
    project     = local.app_id
    Owner       = "Some Name"
    Environment = lower(terraform.workspace)
    managed_by  = "terraform"
  }
  user_data = <<-EOT
  #!/bin/bash
  ### Create and Mount volume
  set -x

  mkfs -t xfs /dev/nvme1n1
  mkdir -p /var/lib/docker
  mount /dev/nvme1n1 /var/lib/docker
  BLK_ID=$(sudo blkid /dev/nvme1n1 | cut -f2 -d" ")
  if [[ -z $BLK_ID ]]; then
    echo "Hmm ... no block ID found ... "
    exit 1
  fi
  echo "$BLK_ID     /var/lib/docker   xfs    defaults   0   2" | sudo tee --append /etc/fstab
  mount -a

  ### Install Docker
  yum update -y
  amazon-linux-extras install -y docker
  # systemctl enable docker
  chkconfig docker on
  usermod -a -G docker ec2-user
  systemctl start docker
  # install docker-compose
  curl -L \
    https://github.com/docker/compose/releases/download/v2.5.1/docker-compose-`uname -s`-`uname -m` \
    -o /usr/local/bin/docker-compose
  chmod +x /usr/local/bin/docker-compose
  ### Install git
  yum -y install git

  echo "Bootstrapping Complete!"

  EOT
}
mldevpants commented 2 years ago

I have followed the issue and found that I need to specify in .tflint.hcl implicitly deep check: https://github.com/terraform-linters/tflint-ruleset-aws/issues/326 and it seems like plan would be nice but it is not supported: https://github.com/terraform-linters/tflint/issues/328

cat .tflint.hcl
plugin "aws" {
  enabled = true
  deep_check         = true
}

I have also updated the docker command to pass the AWS creds and terraform var for region:

docker run --rm -v $(pwd):/data -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} -e TFLINT_LOG=debug -e TF_WORKSPACE=prod -t ghcr.io/terraform-linters/tflint-bundle --module --enable-plugin=aws --var='terraform.workspace=prod' --var='region=eu-west-1'

the log:

21:26:43 config.go:115: [INFO] Load config: .tflint.hcl
21:26:43 config.go:242: [DEBUG] Config loaded
21:26:43 config.go:243: [DEBUG]   Module: false
21:26:43 config.go:244: [DEBUG]   Force: false
21:26:43 config.go:245: [DEBUG]   IgnoreModules:
21:26:43 config.go:249: [DEBUG]   Varfiles:
21:26:43 config.go:250: [DEBUG]   Variables:
21:26:43 config.go:251: [DEBUG]   DisabledByDefault: false
21:26:43 config.go:252: [DEBUG]   PluginDir:
21:26:43 config.go:253: [DEBUG]   Format:
21:26:43 config.go:254: [DEBUG]   Rules:
21:26:43 config.go:258: [DEBUG]   Plugins:
21:26:43 config.go:260: [DEBUG]     aws: enabled=true, version=, source=
21:26:43 option.go:49: [DEBUG] CLI Options
21:26:43 option.go:50: [DEBUG]   Module: true
21:26:43 option.go:51: [DEBUG]   Force: false
21:26:43 option.go:52: [DEBUG]   IgnoreModules:
21:26:43 option.go:56: [DEBUG]   EnableRules:
21:26:43 option.go:57: [DEBUG]   DisableRules:
21:26:43 option.go:58: [DEBUG]   Only:
21:26:43 option.go:59: [DEBUG]   EnablePlugins: aws
21:26:43 option.go:60: [DEBUG]   Varfiles:
21:26:43 option.go:61: [DEBUG]   Variables: terraform.workspace=prod
21:26:43 option.go:62: [DEBUG]   Format:
21:26:43 loader.go:57: [INFO] Initialize new loader
21:26:43 loader.go:68: [INFO] Module manifest file found. Initializing...
21:26:43 loader.go:291: [DEBUG] Parsing the module manifest file: {"Modules":[{"Key":"alb","Source":"terraform-aws-modules/alb/aws","Version":"6.11.0","Dir":".terraform/modules/alb"},{"Key":"db_security_group","Source":"terraform-aws-modules/security-group/aws","Version":"4.9.0","Dir":".terraform/modules/db_security_group"},{"Key":"ec2","Source":"terraform-aws-modules/ec2-instance/aws","Version":"4.0.0","Dir":".terraform/modules/ec2"},{"Key":"ec2_cvat_app_security_group","Source":"terraform-aws-modules/security-group/aws","Version":"4.9.0","Dir":".terraform/modules/ec2_cvat_app_security_group"},{"Key":"lb_security_group","Source":"terraform-aws-modules/security-group/aws","Version":"4.9.0","Dir":".terraform/modules/lb_security_group"},{"Key":"rds.db_option_group","Source":"./modules/db_option_group","Dir":".terraform/modules/rds/modules/db_option_group"},{"Key":"rds.db_parameter_group","Source":"./modules/db_parameter_group","Dir":".terraform/modules/rds/modules/db_parameter_group"},{"Key":"","Source":"","Dir":"."},{"Key":"key_pair_external","Source":"terraform-aws-modules/key-pair/aws","Version":"1.0.1","Dir":".terraform/modules/key_pair_external"},{"Key":"rds","Source":"terraform-aws-modules/rds/aws","Version":"4.3.0","Dir":".terraform/modules/rds"},{"Key":"rds.db_instance","Source":"./modules/db_instance","Dir":".terraform/modules/rds/modules/db_instance"},{"Key":"rds.db_subnet_group","Source":"./modules/db_subnet_group","Dir":".terraform/modules/rds/modules/db_subnet_group"},{"Key":"vpc","Source":"terraform-aws-modules/vpc/aws","Version":"3.14.0","Dir":".terraform/modules/vpc"}]}
21:26:43 loader.go:82: [INFO] Load configurations under .
21:26:43 loader.go:97: [INFO] Module inspection is enabled. Building a root module with children...
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.alb, version=6.11.0, dir=.terraform/modules/alb
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.db_security_group, version=4.9.0, dir=.terraform/modules/db_security_group
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.ec2, version=4.0.0, dir=.terraform/modules/ec2
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.ec2_cvat_app_security_group, version=4.9.0, dir=.terraform/modules/ec2_cvat_app_security_group
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.key_pair_external, version=1.0.1, dir=.terraform/modules/key_pair_external
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.lb_security_group, version=4.9.0, dir=.terraform/modules/lb_security_group
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.rds, version=4.3.0, dir=.terraform/modules/rds
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.rds.module.db_instance, version=, dir=.terraform/modules/rds/modules/db_instance
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.rds.module.db_option_group, version=, dir=.terraform/modules/rds/modules/db_option_group
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.rds.module.db_parameter_group, version=, dir=.terraform/modules/rds/modules/db_parameter_group
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.rds.module.db_subnet_group, version=, dir=.terraform/modules/rds/modules/db_subnet_group
21:26:43 loader.go:273: [DEBUG] Trying to load the module: key=module.vpc, version=3.14.0, dir=.terraform/modules/vpc
21:26:43 loader.go:170: [INFO] Load values files
21:26:43 runner.go:58: [INFO] Initialize new runner for root
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in main.tf:320. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in kms.tf:2. TFLint ignores unevaluable expressions.
21:26:43 runner.go:223: [DEBUG] `create_random_password` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `instance_class` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `db_name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `monitoring_role_description` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `subnet_ids` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `create_cloudwatch_log_group` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `allocated_storage` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `parameters` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `max_allocated_storage` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `db_subnet_group_name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `db_subnet_group_description` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `publicly_accessible` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `port` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `monitoring_role_name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `create_monitoring_role` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `vpc_security_group_ids` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `availability_zone` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `performance_insights_enabled` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `kms_key_id` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `performance_insights_retention_period` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `monitoring_interval` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `backup_retention_period` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `multi_az` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `identifier` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `auto_minor_version_upgrade` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `create_db_subnet_group` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.rds
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/rds/main.tf:17. TFLint ignores unevaluable expressions.
21:26:43 runner.go:223: [DEBUG] `parameter_group_name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `db_subnet_group_name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `create` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `option_group_name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `password` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.rds.module.db_instance
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_instance/main.tf:17. TFLint can only evaluate provided variables and skips dynamic values.
21:26:43 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_instance/main.tf:27. TFLint can only evaluate provided variables and skips dynamic values.
21:26:43 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_instance/main.tf:159. TFLint can only evaluate provided variables and skips dynamic values.
21:26:43 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_instance/main.tf:174. TFLint can only evaluate provided variables and skips dynamic values.
21:26:43 runner.go:223: [DEBUG] `create` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.rds.module.db_option_group
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_option_group/main.tf:9. TFLint can only evaluate provided variables and skips dynamic values.
21:26:43 runner.go:223: [DEBUG] `create` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.rds.module.db_parameter_group
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_parameter_group/main.tf:9. TFLint can only evaluate provided variables and skips dynamic values.
21:26:43 runner.go:223: [DEBUG] `create` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.rds.module.db_subnet_group
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_subnet_group/main.tf:9. TFLint can only evaluate provided variables and skips dynamic values.
21:26:43 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `public_subnets` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `cidr` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `azs` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.vpc
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:21. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:39. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:48. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:94. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:110. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:121. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:133. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:149. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:190. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:202. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:214. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:227. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:248. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:265. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:277. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:289. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:305. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:321. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:337. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:353. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:381. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:408. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:436. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:459. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:479. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:502. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:520. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:543. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:561. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:588. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:641. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:654. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:671. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:692. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:705. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:722. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:743. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:756. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:773. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:794. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:807. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:824. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:845. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:858. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:875. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:896. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:909. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:926. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:947. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:960. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:977. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1002. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1019. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1045. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1057. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1069. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1079. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1089. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1099. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1109. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1119. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1132. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1139. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1169. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1190. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1203. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1216. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:17. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:45. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:55. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:82. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:89. TFLint ignores unevaluable expressions.
21:26:43 runner.go:223: [DEBUG] `target_groups` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `vpc_id` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `security_groups` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `https_listeners` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `drop_invalid_header_fields` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `subnets` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.alb
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:6. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:62. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:147. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:161. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:172. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:419. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:616. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:664. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:759. TFLint ignores unevaluable expressions.
21:26:43 runner.go:223: [DEBUG] `description` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `ingress_with_cidr_blocks` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `vpc_id` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.db_security_group
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:14. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:38. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:67. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:84. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:104. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:148. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:192. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:231. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:282. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:321. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:372. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:404. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:443. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:460. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:480. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:524. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:568. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:607. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:658. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:697. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:748. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:780. TFLint ignores unevaluable expressions.
21:26:43 runner.go:223: [DEBUG] `spot_instance_interruption_behavior` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `associate_public_ip_address` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `key_name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `subnet_id` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `spot_type` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `ebs_block_device` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `user_data_base64` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `instance_type` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `availability_zone` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `vpc_security_group_ids` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `spot_price` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `create_spot_instance` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `spot_wait_for_fulfillment` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `ami` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `root_block_device` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `volume_tags` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.ec2
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2/main.tf:8. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2/main.tf:143. TFLint ignores unevaluable expressions.
21:26:43 runner.go:223: [DEBUG] `description` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `ingress_with_cidr_blocks` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `vpc_id` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `name` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.ec2_cvat_app_security_group
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:14. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:38. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:67. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:84. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:104. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:148. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:192. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:231. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:282. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:321. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:372. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:404. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:443. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:460. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:480. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:524. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:568. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:607. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:658. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:697. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:748. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:780. TFLint ignores unevaluable expressions.
21:26:43 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `key_name` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.key_pair_external
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner.go:223: [DEBUG] `name` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `description` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `ingress_with_cidr_blocks` has been marked as unknown
21:26:43 runner.go:223: [DEBUG] `vpc_id` has been marked as unknown
21:26:43 runner.go:58: [INFO] Initialize new runner for module.lb_security_group
21:26:43 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:14. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:38. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:67. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:84. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:104. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:148. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:192. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:231. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:282. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:321. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:372. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:404. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:443. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:460. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:480. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:524. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:568. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:607. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:658. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:697. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:748. TFLint ignores unevaluable expressions.
21:26:43 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:780. TFLint ignores unevaluable expressions.
21:26:43 discovery.go:79: [DEBUG] Find plugin path: /root/.tflint.d/plugins/tflint-ruleset-aws
21:26:43 discovery.go:43: [INFO] Plugin `aws` found
21:26:43 [DEBUG] go-plugin@v1.4.3/client.go:355: starting plugin: path=/root/.tflint.d/plugins/tflint-ruleset-aws args=["/root/.tflint.d/plugins/tflint-ruleset-aws"]
21:26:43 [DEBUG] go-plugin@v1.4.3/client.go:355: plugin started: path=/root/.tflint.d/plugins/tflint-ruleset-aws pid=12
21:26:43 [DEBUG] go-plugin@v1.4.3/client.go:355: waiting for RPC address: path=/root/.tflint.d/plugins/tflint-ruleset-aws
21:26:43 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:43 [DEBUG] host2plugin/server.go:38: plugin address: network=unix address=/tmp/plugin4088444503
21:26:43 [DEBUG] go-plugin@v1.4.3/client.go:355: using plugin: version=10
21:26:44 provider.go:63: [INFO] Prepare rules
21:26:44 provider.go:91: [INFO]   4 default rules enabled
21:26:44 terraform_module_pinned_source.go:79: [DEBUG] Walk `rds.source` attribute
21:26:44 terraform_module_pinned_source.go:79: [DEBUG] Walk `key_pair_external.source` attribute
21:26:44 terraform_module_pinned_source.go:79: [DEBUG] Walk `ec2.source` attribute
21:26:44 terraform_module_pinned_source.go:79: [DEBUG] Walk `alb.source` attribute
21:26:44 terraform_module_pinned_source.go:79: [DEBUG] Walk `vpc.source` attribute
21:26:44 terraform_module_pinned_source.go:79: [DEBUG] Walk `db_security_group.source` attribute
21:26:44 terraform_module_pinned_source.go:79: [DEBUG] Walk `ec2_cvat_app_security_group.source` attribute
21:26:44 terraform_module_pinned_source.go:79: [DEBUG] Walk `lb_security_group.source` attribute
21:26:44 terraform_module_version.go:75: [DEBUG] Walk `key_pair_external.source` attribute
21:26:44 terraform_module_version.go:75: [DEBUG] Walk `ec2.source` attribute
21:26:44 terraform_module_version.go:75: [DEBUG] Walk `alb.source` attribute
21:26:44 terraform_module_version.go:75: [DEBUG] Walk `vpc.source` attribute
21:26:44 terraform_module_version.go:75: [DEBUG] Walk `db_security_group.source` attribute
21:26:44 terraform_module_version.go:75: [DEBUG] Walk `ec2_cvat_app_security_group.source` attribute
21:26:44 terraform_module_version.go:75: [DEBUG] Walk `lb_security_group.source` attribute
21:26:44 terraform_module_version.go:75: [DEBUG] Walk `rds.source` attribute
21:26:44 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:44 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:44 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:44 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:44 [INFO] AWS Auth provider used: "EnvProvider"
21:26:44 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:44 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:44 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:44 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:44 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:44 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:44 [INFO] AWS Auth provider used: "EnvProvider"
21:26:44 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:44 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:45 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:45 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:45 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:45 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:45 [INFO] AWS Auth provider used: "EnvProvider"
21:26:45 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:45 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:46 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:46 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:46 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:46 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:46 [INFO] AWS Auth provider used: "EnvProvider"
21:26:46 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:46 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:47 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:47 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:47 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:47 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:47 [INFO] AWS Auth provider used: "EnvProvider"
21:26:47 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:47 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:48 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:48 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:48 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:48 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:48 [INFO] AWS Auth provider used: "EnvProvider"
21:26:48 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:48 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:49 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:49 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:49 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:49 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:49 [INFO] AWS Auth provider used: "EnvProvider"
21:26:49 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:49 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:49 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:49 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:49 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:49 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:49 [INFO] AWS Auth provider used: "EnvProvider"
21:26:49 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:49 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:50 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:50 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:50 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:50 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:50 [INFO] AWS Auth provider used: "EnvProvider"
21:26:50 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:50 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:51 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:51 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:51 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:51 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:51 [INFO] AWS Auth provider used: "EnvProvider"
21:26:51 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:51 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:52 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:52 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:52 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:52 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:52 [INFO] AWS Auth provider used: "EnvProvider"
21:26:52 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:52 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:53 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:53 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:53 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:53 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:53 [INFO] AWS Auth provider used: "EnvProvider"
21:26:53 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:53 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:54 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:26:54 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:26:54 [INFO]  aws/client.go:58: Initialize AWS Client
21:26:54 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:54 [INFO] AWS Auth provider used: "EnvProvider"
21:26:54 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:26:54 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:26:54 runner.go:318: [WARN] Skip walking `aws_eip.ec2` because it may not be created
21:26:54 runner.go:322: [WARN] Skip walking `aws_kms_key.rds` because it may not be created
21:26:54 runner_eval.go:40: [INFO] unevaluable expression found in kms.tf:11. TFLint ignores unevaluable expressions.
21:26:54 [ERROR] interceptor/logging.go:18: failed to gRPC request: direction=plugin2host method=/proto.Runner/EvaluateExpr err="rpc error: code = FailedPrecondition desc = unevaluable expression found in kms.tf:11"
21:26:54 runner.go:318: [WARN] Skip walking `aws_eip.ec2` because it may not be created
21:26:54 runner.go:322: [WARN] Skip walking `aws_kms_key.rds` because it may not be created
21:26:54 runner.go:318: [WARN] Skip walking `aws_eip.ec2` because it may not be created
21:26:54 runner.go:322: [WARN] Skip walking `aws_kms_key.rds` because it may not be created
21:26:54 [DEBUG] runtime/asm_amd64.s:1571: stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
21:26:54 [DEBUG] runtime/asm_amd64.s:1571: plugin process exited: path=/root/.tflint.d/plugins/tflint-ruleset-aws pid=12
21:26:54 [DEBUG] plugin/plugin.go:26: plugin exited
[build_user@lxbuild02 s]$ docker run --rm -v $(pwd):/data -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} -e TFLINT_LOG=debug -e TF_WORKSPACE=prod -t ghcr.io/terraform-linters/tflint-bundle --module --enable-plugin=aws --var='terraform.workspace=prod' -var='region=eu-west-1'
Failed to parse CLI options; `var=region=eu-west-1` is unknown option. Please run `tflint --help`
[build_user@lxbuild02 s]$ docker run --rm -v $(pwd):/data -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} -e TFLINT_LOG=debug -e TF_WORKSPACE=prod -t ghcr.io/terraform-linters/tflint-bundle --module --enable-plugin=aws --var='terraform.workspace=prod' --var='region=eu-west-1'
21:28:18 config.go:115: [INFO] Load config: .tflint.hcl
21:28:18 config.go:242: [DEBUG] Config loaded
21:28:18 config.go:243: [DEBUG]   Module: false
21:28:18 config.go:244: [DEBUG]   Force: false
21:28:18 config.go:245: [DEBUG]   IgnoreModules:
21:28:18 config.go:249: [DEBUG]   Varfiles:
21:28:18 config.go:250: [DEBUG]   Variables:
21:28:18 config.go:251: [DEBUG]   DisabledByDefault: false
21:28:18 config.go:252: [DEBUG]   PluginDir:
21:28:18 config.go:253: [DEBUG]   Format:
21:28:18 config.go:254: [DEBUG]   Rules:
21:28:18 config.go:258: [DEBUG]   Plugins:
21:28:18 config.go:260: [DEBUG]     aws: enabled=true, version=, source=
21:28:18 option.go:49: [DEBUG] CLI Options
21:28:18 option.go:50: [DEBUG]   Module: true
21:28:18 option.go:51: [DEBUG]   Force: false
21:28:18 option.go:52: [DEBUG]   IgnoreModules:
21:28:18 option.go:56: [DEBUG]   EnableRules:
21:28:18 option.go:57: [DEBUG]   DisableRules:
21:28:18 option.go:58: [DEBUG]   Only:
21:28:18 option.go:59: [DEBUG]   EnablePlugins: aws
21:28:18 option.go:60: [DEBUG]   Varfiles:
21:28:18 option.go:61: [DEBUG]   Variables: terraform.workspace=prod, region=eu-west-1
21:28:18 option.go:62: [DEBUG]   Format:
21:28:18 loader.go:57: [INFO] Initialize new loader
21:28:18 loader.go:68: [INFO] Module manifest file found. Initializing...
21:28:18 loader.go:291: [DEBUG] Parsing the module manifest file: {"Modules":[{"Key":"alb","Source":"terraform-aws-modules/alb/aws","Version":"6.11.0","Dir":".terraform/modules/alb"},{"Key":"db_security_group","Source":"terraform-aws-modules/security-group/aws","Version":"4.9.0","Dir":".terraform/modules/db_security_group"},{"Key":"ec2","Source":"terraform-aws-modules/ec2-instance/aws","Version":"4.0.0","Dir":".terraform/modules/ec2"},{"Key":"ec2_cvat_app_security_group","Source":"terraform-aws-modules/security-group/aws","Version":"4.9.0","Dir":".terraform/modules/ec2_cvat_app_security_group"},{"Key":"lb_security_group","Source":"terraform-aws-modules/security-group/aws","Version":"4.9.0","Dir":".terraform/modules/lb_security_group"},{"Key":"rds.db_option_group","Source":"./modules/db_option_group","Dir":".terraform/modules/rds/modules/db_option_group"},{"Key":"rds.db_parameter_group","Source":"./modules/db_parameter_group","Dir":".terraform/modules/rds/modules/db_parameter_group"},{"Key":"","Source":"","Dir":"."},{"Key":"key_pair_external","Source":"terraform-aws-modules/key-pair/aws","Version":"1.0.1","Dir":".terraform/modules/key_pair_external"},{"Key":"rds","Source":"terraform-aws-modules/rds/aws","Version":"4.3.0","Dir":".terraform/modules/rds"},{"Key":"rds.db_instance","Source":"./modules/db_instance","Dir":".terraform/modules/rds/modules/db_instance"},{"Key":"rds.db_subnet_group","Source":"./modules/db_subnet_group","Dir":".terraform/modules/rds/modules/db_subnet_group"},{"Key":"vpc","Source":"terraform-aws-modules/vpc/aws","Version":"3.14.0","Dir":".terraform/modules/vpc"}]}
21:28:18 loader.go:82: [INFO] Load configurations under .
21:28:18 loader.go:97: [INFO] Module inspection is enabled. Building a root module with children...
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.alb, version=6.11.0, dir=.terraform/modules/alb
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.db_security_group, version=4.9.0, dir=.terraform/modules/db_security_group
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.ec2, version=4.0.0, dir=.terraform/modules/ec2
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.ec2_cvat_app_security_group, version=4.9.0, dir=.terraform/modules/ec2_cvat_app_security_group
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.key_pair_external, version=1.0.1, dir=.terraform/modules/key_pair_external
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.lb_security_group, version=4.9.0, dir=.terraform/modules/lb_security_group
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.rds, version=4.3.0, dir=.terraform/modules/rds
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.rds.module.db_instance, version=, dir=.terraform/modules/rds/modules/db_instance
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.rds.module.db_option_group, version=, dir=.terraform/modules/rds/modules/db_option_group
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.rds.module.db_parameter_group, version=, dir=.terraform/modules/rds/modules/db_parameter_group
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.rds.module.db_subnet_group, version=, dir=.terraform/modules/rds/modules/db_subnet_group
21:28:18 loader.go:273: [DEBUG] Trying to load the module: key=module.vpc, version=3.14.0, dir=.terraform/modules/vpc
21:28:18 loader.go:170: [INFO] Load values files
21:28:18 runner.go:58: [INFO] Initialize new runner for root
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in kms.tf:2. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in main.tf:320. TFLint ignores unevaluable expressions.
21:28:18 runner.go:223: [DEBUG] `drop_invalid_header_fields` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `security_groups` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `target_groups` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `https_listeners` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `subnets` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `vpc_id` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.alb
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:6. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:62. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:147. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:161. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:172. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:419. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:616. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:664. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/alb/main.tf:759. TFLint ignores unevaluable expressions.
21:28:18 runner.go:223: [DEBUG] `description` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `ingress_with_cidr_blocks` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `vpc_id` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `name` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.db_security_group
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:14. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:38. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:67. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:84. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:104. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:148. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:192. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:231. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:282. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:321. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:372. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:404. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:443. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:460. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:480. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:524. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:568. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:607. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:658. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:697. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:748. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/db_security_group/main.tf:780. TFLint ignores unevaluable expressions.
21:28:18 runner.go:223: [DEBUG] `subnet_id` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `associate_public_ip_address` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `instance_type` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `volume_tags` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `root_block_device` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `spot_wait_for_fulfillment` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `spot_instance_interruption_behavior` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `ebs_block_device` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `create_spot_instance` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `ami` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `key_name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `spot_type` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `availability_zone` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `user_data_base64` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `vpc_security_group_ids` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `spot_price` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.ec2
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2/main.tf:8. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2/main.tf:143. TFLint ignores unevaluable expressions.
21:28:18 runner.go:223: [DEBUG] `name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `description` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `vpc_id` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `ingress_with_cidr_blocks` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.ec2_cvat_app_security_group
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:14. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:38. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:67. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:84. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:104. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:148. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:192. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:231. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:282. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:321. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:372. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:404. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:443. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:460. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:480. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:524. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:568. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:607. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:658. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:697. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:748. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/ec2_cvat_app_security_group/main.tf:780. TFLint ignores unevaluable expressions.
21:28:18 runner.go:223: [DEBUG] `key_name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.key_pair_external
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner.go:223: [DEBUG] `name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `description` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `ingress_with_cidr_blocks` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `vpc_id` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.lb_security_group
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:14. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:38. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:67. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:84. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:104. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:148. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:192. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:231. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:282. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:321. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:372. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:404. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:443. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:460. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:480. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:524. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:568. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:607. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:658. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:697. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:748. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/lb_security_group/main.tf:780. TFLint ignores unevaluable expressions.
21:28:18 runner.go:223: [DEBUG] `kms_key_id` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `vpc_security_group_ids` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `auto_minor_version_upgrade` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `identifier` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `instance_class` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `publicly_accessible` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `create_db_subnet_group` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `allocated_storage` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `db_subnet_group_name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `performance_insights_retention_period` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `db_name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `subnet_ids` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `availability_zone` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `performance_insights_enabled` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `create_random_password` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `monitoring_role_name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `db_subnet_group_description` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `port` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `monitoring_role_description` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `backup_retention_period` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `max_allocated_storage` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `multi_az` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `monitoring_interval` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `create_monitoring_role` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `parameters` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `create_cloudwatch_log_group` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.rds
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/rds/main.tf:17. TFLint ignores unevaluable expressions.
21:28:18 runner.go:223: [DEBUG] `create` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `option_group_name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `parameter_group_name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `db_subnet_group_name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `password` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.rds.module.db_instance
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_instance/main.tf:17. TFLint can only evaluate provided variables and skips dynamic values.
21:28:18 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_instance/main.tf:27. TFLint can only evaluate provided variables and skips dynamic values.
21:28:18 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_instance/main.tf:159. TFLint can only evaluate provided variables and skips dynamic values.
21:28:18 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_instance/main.tf:174. TFLint can only evaluate provided variables and skips dynamic values.
21:28:18 runner.go:223: [DEBUG] `create` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.rds.module.db_option_group
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_option_group/main.tf:9. TFLint can only evaluate provided variables and skips dynamic values.
21:28:18 runner.go:223: [DEBUG] `create` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.rds.module.db_parameter_group
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_parameter_group/main.tf:9. TFLint can only evaluate provided variables and skips dynamic values.
21:28:18 runner.go:223: [DEBUG] `create` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.rds.module.db_subnet_group
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:68: [INFO] unknown value found in .terraform/modules/rds/modules/db_subnet_group/main.tf:9. TFLint can only evaluate provided variables and skips dynamic values.
21:28:18 runner.go:223: [DEBUG] `cidr` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `azs` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `name` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `public_subnets` has been marked as unknown
21:28:18 runner.go:223: [DEBUG] `tags` has been marked as unknown
21:28:18 runner.go:58: [INFO] Initialize new runner for module.vpc
21:28:18 terraform.go:72: [INFO] TF_WORKSPACE environment variable found: prod
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:17. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:45. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:55. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:82. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/vpc-flow-logs.tf:89. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:21. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:39. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:48. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:94. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:110. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:121. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:133. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:149. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:190. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:202. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:214. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:227. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:248. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:265. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:277. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:289. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:305. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:321. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:337. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:353. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:381. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:408. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:436. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:459. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:479. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:502. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:520. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:543. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:561. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:588. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:641. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:654. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:671. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:692. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:705. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:722. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:743. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:756. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:773. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:794. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:807. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:824. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:845. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:858. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:875. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:896. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:909. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:926. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:947. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:960. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:977. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1002. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1019. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1045. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1057. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1069. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1079. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1089. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1099. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1109. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1119. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1132. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1139. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1169. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1190. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1203. TFLint ignores unevaluable expressions.
21:28:18 runner_eval.go:40: [INFO] unevaluable expression found in .terraform/modules/vpc/main.tf:1216. TFLint ignores unevaluable expressions.
21:28:18 discovery.go:79: [DEBUG] Find plugin path: /root/.tflint.d/plugins/tflint-ruleset-aws
21:28:18 discovery.go:43: [INFO] Plugin `aws` found
21:28:18 [DEBUG] go-plugin@v1.4.3/client.go:355: starting plugin: path=/root/.tflint.d/plugins/tflint-ruleset-aws args=["/root/.tflint.d/plugins/tflint-ruleset-aws"]
21:28:18 [DEBUG] go-plugin@v1.4.3/client.go:355: plugin started: path=/root/.tflint.d/plugins/tflint-ruleset-aws pid=12
21:28:18 [DEBUG] go-plugin@v1.4.3/client.go:355: waiting for RPC address: path=/root/.tflint.d/plugins/tflint-ruleset-aws
21:28:18 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:18 [DEBUG] host2plugin/server.go:38: plugin address: network=unix address=/tmp/plugin3385166780
21:28:18 [DEBUG] go-plugin@v1.4.3/client.go:355: using plugin: version=10
21:28:18 provider.go:63: [INFO] Prepare rules
21:28:18 provider.go:91: [INFO]   4 default rules enabled
21:28:18 terraform_module_pinned_source.go:79: [DEBUG] Walk `db_security_group.source` attribute
21:28:18 terraform_module_pinned_source.go:79: [DEBUG] Walk `ec2_cvat_app_security_group.source` attribute
21:28:18 terraform_module_pinned_source.go:79: [DEBUG] Walk `lb_security_group.source` attribute
21:28:18 terraform_module_pinned_source.go:79: [DEBUG] Walk `rds.source` attribute
21:28:18 terraform_module_pinned_source.go:79: [DEBUG] Walk `key_pair_external.source` attribute
21:28:18 terraform_module_pinned_source.go:79: [DEBUG] Walk `ec2.source` attribute
21:28:18 terraform_module_pinned_source.go:79: [DEBUG] Walk `alb.source` attribute
21:28:18 terraform_module_pinned_source.go:79: [DEBUG] Walk `vpc.source` attribute
21:28:18 terraform_module_version.go:75: [DEBUG] Walk `alb.source` attribute
21:28:18 terraform_module_version.go:75: [DEBUG] Walk `vpc.source` attribute
21:28:18 terraform_module_version.go:75: [DEBUG] Walk `db_security_group.source` attribute
21:28:18 terraform_module_version.go:75: [DEBUG] Walk `ec2_cvat_app_security_group.source` attribute
21:28:18 terraform_module_version.go:75: [DEBUG] Walk `lb_security_group.source` attribute
21:28:18 terraform_module_version.go:75: [DEBUG] Walk `rds.source` attribute
21:28:18 terraform_module_version.go:75: [DEBUG] Walk `key_pair_external.source` attribute
21:28:18 terraform_module_version.go:75: [DEBUG] Walk `ec2.source` attribute
21:28:18 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:18 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:18 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:18 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:18 [INFO] AWS Auth provider used: "EnvProvider"
21:28:18 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:18 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:19 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:19 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:19 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:19 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:19 [INFO] AWS Auth provider used: "EnvProvider"
21:28:19 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:19 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:20 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:20 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:20 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:20 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:20 [INFO] AWS Auth provider used: "EnvProvider"
21:28:20 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:20 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:21 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:21 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:21 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:21 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:21 [INFO] AWS Auth provider used: "EnvProvider"
21:28:21 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:21 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:22 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:22 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:22 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:22 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:22 [INFO] AWS Auth provider used: "EnvProvider"
21:28:22 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:22 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:23 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:23 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:23 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:23 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:23 [INFO] AWS Auth provider used: "EnvProvider"
21:28:23 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:23 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:23 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:23 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:23 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:23 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:23 [INFO] AWS Auth provider used: "EnvProvider"
21:28:23 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:23 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:24 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:24 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:24 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:24 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:24 [INFO] AWS Auth provider used: "EnvProvider"
21:28:24 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:24 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:25 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:25 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:25 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:25 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:25 [INFO] AWS Auth provider used: "EnvProvider"
21:28:25 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:25 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:26 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:26 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:26 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:26 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:26 [INFO] AWS Auth provider used: "EnvProvider"
21:28:26 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:26 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:27 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:27 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:27 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:27 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:27 [INFO] AWS Auth provider used: "EnvProvider"
21:28:27 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:27 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:28 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:28 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:28 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:28 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:28 [INFO] AWS Auth provider used: "EnvProvider"
21:28:28 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:28 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:28 [DEBUG] host2plugin/client.go:101: starting host-side gRPC server
21:28:28 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 21:28:28 [INFO]  aws/client.go:58: Initialize AWS Client
21:28:28 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:28 [INFO] AWS Auth provider used: "EnvProvider"
21:28:28 [DEBUG] runtime/asm_amd64.s:1571: tflint-ruleset-aws: 2022/05/25 21:28:28 [DEBUG] Trying to get account information via sts:GetCallerIdentity
21:28:29 runner.go:322: [WARN] Skip walking `aws_kms_key.rds` because it may not be created
21:28:29 runner.go:318: [WARN] Skip walking `aws_eip.ec2` because it may not be created
21:28:29 runner_eval.go:40: [INFO] unevaluable expression found in kms.tf:11. TFLint ignores unevaluable expressions.
21:28:29 [ERROR] interceptor/logging.go:18: failed to gRPC request: direction=plugin2host method=/proto.Runner/EvaluateExpr err="rpc error: code = FailedPrecondition desc = unevaluable expression found in kms.tf:11"
21:28:29 runner.go:322: [WARN] Skip walking `aws_kms_key.rds` because it may not be created
21:28:29 runner.go:318: [WARN] Skip walking `aws_eip.ec2` because it may not be created
21:28:29 runner.go:322: [WARN] Skip walking `aws_kms_key.rds` because it may not be created
21:28:29 runner.go:318: [WARN] Skip walking `aws_eip.ec2` because it may not be created
21:28:29 [DEBUG] runtime/asm_amd64.s:1571: stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
21:28:29 [DEBUG] runtime/asm_amd64.s:1571: plugin process exited: path=/root/.tflint.d/plugins/tflint-ruleset-aws pid=12
21:28:29 [DEBUG] plugin/plugin.go:26: plugin exited
wata727 commented 2 years ago

Since TFLint interprets the TF_WORKSPACE environment variable, setting the environment variable in the same way will evaluate terraform.workspace.

TFLint has a limitation that some expressions cannot be evaluated, such as local.*. Please see the following documents for details: https://github.com/terraform-linters/tflint/blob/v0.36.2/docs/user-guide/compatibility.md

mldevpants commented 2 years ago

Thanks In my example I've used the TF_WORKSPACE env variable, but I tried using the wrong ec2 type to test it and nothing, all I get is the long debug output from above. locals: ec2_instance_type = "m6i.largedsa"

then it is loaded to a module with

instance_type = local.workspace["ec2_instance_type"]

mldevpants commented 2 years ago

This the module load:

module "ec2" {
  source  = "terraform-aws-modules/ec2-instance/aws"
  version = "~> 4.0"
  create  = true
  depends_on = [
    module.rds
  ]

  create_spot_instance = local.workspace["ec2_create_spot_instance"]

  name = local.ec2_name

  ami                    = data.aws_ami.amazon-linux-2.id
  instance_type          = local.workspace["ec2_instance_type"]
  availability_zone      = element(module.vpc.azs, 0)
  subnet_id              = element(module.vpc.public_subnets, 0)
  vpc_security_group_ids = [module.ec2_cvat_app_security_group.security_group_id]
  # placement_group             = aws_placement_group.web.id
  associate_public_ip_address = local.workspace["ec2_associate_public_ip_address"]
  key_name                    = module.key_pair_external.key_pair_key_name

  # Spot request specific attributes
  spot_price                          = local.workspace["ec2_spot_price"]
  spot_wait_for_fulfillment           = local.workspace["ec2_spot_wait_for_fulfillment"]
  spot_type                           = local.workspace["ec2_spot_type"]
  spot_instance_interruption_behavior = local.workspace["ec2_spot_instance_interruption_behavior"]
  # End spot request specific attributes

  user_data_base64            = base64encode(local.user_data)
  user_data_replace_on_change = true

  # capacity_reservation_specification = {
  #   capacity_reservation_preference = "open"
  # }

  enable_volume_tags = true
  ebs_optimized      = true
  root_block_device = [
    {
      encrypted   = local.workspace["ec2_root_block_device_encrypted"]
      volume_type = local.workspace["ec2_root_block_volume_type"]
      throughput  = local.workspace["ec2_root_block_throughput"]
      volume_size = local.workspace["ec2_root_block_volume_size"]
      # tags        = merge({ "Name" = "${local.ec2_name}-root-ebs" }, local.tags)
    },
  ]

  ebs_block_device = [
    {
      device_name = "/dev/sdb"
      encrypted   = local.workspace["ec2_ebs_block_device_encrypted"]
      volume_type = local.workspace["ec2_ebs_block_volume_type"]
      throughput  = local.workspace["ec2_ebs_block_throughput"]
      volume_size = local.workspace["ec2_ebs_block_volume_size"]
      # kms_key_id  = aws_kms_key.this.arn # you must grant the AWSServiceRoleForEC2Spot service-linked role access to any custom KMS keys
    }
  ]

  tags        = local.tags
  volume_tags = local.tags
}
mldevpants commented 2 years ago

any advice on that?

bendrucker commented 2 years ago

TFLint has a limitation that some expressions cannot be evaluated, such as local.*

mldevpants commented 2 years ago

Thanks :unamused: