Unknown token: 16:16 IDENT lb_cookie

1,783 views
Skip to first unread message

Amol Shende

unread,
Feb 27, 2017, 2:49:20 AM2/27/17
to Terraform
HI ,
I am using terraform scripts for setting AWS alb.

I have defined following resource blog :

resource "aws_alb_target_group" "cachet-alb-tg" {
    name     = "cachet-alb-tg"
    port     = 80
    protocol = "HTTP"
    vpc_id   = "${aws_vpc.main.id}"
    tags {
          Name = "cachet-alb-tg"
    }
    health_check {
       # port  = 80
        matcher = "200,302"
        timeout = 20
        unhealthy_threshold = 5
    }
    stickiness {
        type   = lb_cookie

    }
}

It throws following error:

Error loading config: Error parsing /Users/shendea/cachet-teraform/final/cachet_terraform/elb.tf: At 16:18: Unknown token: 16:18 IDENT lb_cookie

Lowe Schmidt

unread,
Feb 27, 2017, 3:46:22 AM2/27/17
to terrafo...@googlegroups.com
What version of terraform are you using?

--
Lowe Schmidt | +46 723 867 157

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/7771923b-2528-474f-88dc-b17b3192b434%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amol Shende

unread,
Feb 27, 2017, 5:50:30 AM2/27/17
to Terraform

Terraform v0.8.6
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.

Brian Lalor

unread,
Feb 27, 2017, 6:06:29 AM2/27/17
to terrafo...@googlegroups.com
Put "lb_cookie" in quotes.  

--
Brian Lalor

Amol Shende

unread,
Feb 27, 2017, 6:39:05 AM2/27/17
to Terraform
Thanks Brian,

It was silly mistake. My apology! 
Reply all
Reply to author
Forward
0 new messages