AWS tags with special characters?

347 views
Skip to first unread message

Keith Mosher

unread,
Nov 12, 2014, 5:25:54 PM11/12/14
to terrafo...@googlegroups.com
We use some tags with colons in them (ex. "puppet::aws::user": "foo" ). This tag causes syntax failures when I try to use it in terraform (not surprising). Is there a way to just specify tags as a map[string]string, or is that impossible given the way tags are specified/handled inside terraform?

Mitchell Hashimoto

unread,
Nov 12, 2014, 5:49:32 PM11/12/14
to Keith Mosher, <terraform-tool@googlegroups.com>
Keith,

Does this not work?

tags {
"puppet::aws::user" = "foo"
}

Best,
Mitchell
> --
> 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-too...@googlegroups.com.
> To post to this group, send email to terrafo...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/terraform-tool/901b2366-e385-4e6f-8a92-cfc9ad33c109%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Keith Mosher

unread,
Nov 12, 2014, 6:00:56 PM11/12/14
to Mitchell Hashimoto, <terraform-tool@googlegroups.com>
It does not.; terraform marks a syntax error at the equals sign after the tag name. (confusingly, the line number is three greater than it should be)

Error loading config: Error parsing file.tf: Line 21, column 29: syntax error

Mitchell Hashimoto

unread,
Nov 13, 2014, 12:04:26 AM11/13/14
to Keith Mosher, <terraform-tool@googlegroups.com>
Keith,

I'm looking into this now.

Mitchell Hashimoto

unread,
Nov 13, 2014, 12:09:04 AM11/13/14
to Keith Mosher, <terraform-tool@googlegroups.com>
Keith,

I've fixed this here:
https://github.com/hashicorp/hcl/commit/ab2c4c3120fb8b3345d0d15057ab72be1484becd

This will be part of the next version of TF.

Best,
Mitchell

On Wed, Nov 12, 2014 at 9:04 PM, Mitchell Hashimoto
Reply all
Reply to author
Forward
0 new messages