Debug output on command line?

3,279 views
Skip to first unread message

Mark Norman

unread,
Aug 4, 2014, 5:03:30 AM8/4/14
to terrafo...@googlegroups.com
Hi,

Trying to set up but getting the classic SignatureDoesNotMatch error executing the first basic AWS apply. I've rechecked my keys and sure they're not the problem (Mac OS X AWS command line tools work fine), so something else is amiss. Is there a way to get low level debug statements out of terraform so I can figure out where to look next? I'm guessing it's because I'm running 10.10 and something has changed, so probably not a bug in terraform.

Thanks
Mark

Jack Pearkes

unread,
Aug 4, 2014, 6:49:55 PM8/4/14
to Mark Norman, terrafo...@googlegroups.com
Mark,

You can see more debugging with TF_LOG=1 terraform apply ...

If it is in fact a bug, we'd appreciate you opening an issue: https://github.com/hashicorp/terraform/issues/new

Thanks!

Jack


--
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/a086922a-f408-464c-a2f0-424ef3f8b9cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Norman

unread,
Mar 28, 2015, 10:47:36 PM3/28/15
to terrafo...@googlegroups.com, nzm...@gmail.com
I finally identified a candidate cause for the problem. Using other AWS IAM users I didn't get the issue but I couldn't make it go away with one account. That account has a "+" sign in the secret key value.

It may be that some intermediary code or library between the AWS API call and the tfvar file is not handling that character correctly, and either dropping it or escaping it to a different value. I can't find any other factor which varies and that IAM user otherwise works fine. It may even be a problem on the Amazon side with one of the APIs not handling the input secret key correctly. Very odd.

Regards
Mark

James Nugent

unread,
Mar 20, 2016, 9:47:18 PM3/20/16
to Terraform, nzm...@gmail.com
Since this thread has started doing the rounds on Twitter, for anyone finding this now - this was either not the issue or it has been fixed subsequently.

I have just verified with my own secret key containing a '+' symbol that Terraform works as expected in this case.

Regards,


James
Reply all
Reply to author
Forward
0 new messages