title: expected: IDENT | STRING | ASSIGN | LBRACE got: LBRACK[0m[0m in terraform
body: <p>Being new to terraform and Jenkins, I am trying to run terraform script on jenkins but facing this strange issue as shown below:</p>
  
  <blockquote>
    <p>Checking out Revision 59b7e707924169b66e3043a381ab63f6ccd0e2ae
    (refs/remotes/origin/master)</p>
    
    <blockquote>
      <p>git config core.sparsecheckout # timeout=10
      git checkout -f 59b7e707924169b66e3043a381ab63f6ccd0e2ae
      git rev-list 14cca48b44d7820f3f6ea8ed6d2a0728bc5e2176 # timeout=10 [FT_packer] $ /opt/software/terraform/0.9.5/terraform get [31mError
      loading configuration: Error parsing
      /opt/repository/jenkins/workspace/crspng-CCPDev-ccp-ft-tf/farm_vpc_02/FT_packer/vars.tf:
      At 16:35: expected: IDENT | STRING | ASSIGN | LBRACE got:
      LBRACK[0m[0m FATAL: java.lang.Exception: Terraform Get failed: 1  at
      org.jenkinsci.plugins.terraform.TerraformBuildWrapper.executeGet(TerraformBuildWrapper.java:224)
        at
      org.jenkinsci.plugins.terraform.TerraformBuildWrapper.setUp(TerraformBuildWrapper.java:256)
        at hudson.model.Build$BuildExecution.doRun(Build.java:156)  at
      hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
        at hudson.model.Run.execute(Run.java:1720)  at
      hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)   at
      hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:401)</p>
    </blockquote>
    
    <p>Finished: FAILURE</p>
  </blockquote>
  
  <p>Main.tf looks like this :</p>
  
  <pre><code>resource "aws_instance" "FT-packer-node" {
    ami                           = "${var.aws-region}"
    instance_type                 = "${var.instance-type}"
    vpc_security_group_ids        = "${var.vpc-security-group-ids}"
    key_name                      = "${var.key-name}"
    subnet_id                     = "${var.subnet-id}"
    associate_public_ip_address   = "${var.associate-public-ip-address}"
    availability_zone             = "eu-central-1a"
    private_ip                    = "${var.machine-private-ip}"
    tags {
      Name                        = "${var.machine-name-node}"
      Owner                       = "${var.team-name}"
    }
  
    timeouts {
      create                      = "${var.create-timeout}"
      delete                      = "${var.update-timeout}"
    }
  }
  </code></pre>
  
  <p>Declared all variables in vars.ft like below:</p>
  
  <pre><code>variable "access_key" {}
  
  variable "secret_key" {}
  
  # ------------- MACHINE RELATED CONFIGS ------------- 
  
  variable "vpc-name" {}
  
  # Key file(pep/ppk) to be associated
  variable "key-name" {}
  
  # EC2 instance size
  variable "instance-type" {}
  
  # VPC Security group id to launch machine in
  variable "vpc-security-group-ids" []
  
  # Subnet of the VPC
  variable "subnet-id" {}
  
  variable "elb-name" {}
  # --------------------------ENDS-----------------------------------------
  
  
  # ------------------------ Optionals ----------------------------------------
  # Below configs can be left unchanged. Change on need basis only.
  # Team name
  variable "team-name" {}
  
  variable "machine-name-node" {}
  
  variable "machine-private-ip" {}
  
  variable "create-timeout" {}
  
  variable "update-timeout" {}
  
  variable "availability-zones" {}
  
  variable "elb-access-log-bucket-name" {}
  
  variable "elb-access-log-dir-name" {}
  
  
  variable "is-internal-lb" {}
  
  # Need a public IP ?
  variable "associate-public-ip-address" {}
  
  # Region
  variable "aws-region" {}
  </code></pre>
  
  <p>Error is been shown at the line 16 of above file, that is </p>
  
  <blockquote>
    <p>variable "vpc-security-group-ids" []</p>
  </blockquote>
  
  <p>Actual resource variables are mentioned like this in jenkins :</p>
  
  <p><a href="https://i.stack.imgur.com/Qt0mq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qt0mq.png" alt="enter image description here"></a></p>