alexandrst88 / terraform-variables-generator

Simple Tool for Generate Variables file from Terraform Configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commented out lines are not excluded

varnav opened this issue · comments

It will generate variables even if those variables are commented out.

Example:

  # custom_rules {
  #   name      = "IPWhitelist"
  #   priority  = 1
  #   rule_type = "MatchRule"

  #   match_conditions {
  #     match_variables {
  #       variable_name = "RemoteAddr"
  #     }

  #     operator           = "IPMatch"
  #     negation_condition = true
  #     match_values       = var.whitelisted_ips
  #   }

  #   action = "Block"
  # }

Variable definition will be generated for whitelisted_ips - something I'm not expecting.