Open heydonovan opened 5 years ago
I had the same problem, the correct tf snippet that worked for me was:
resource "aws_security_group" "whitelist" {
...removed for brevity...
tags = {
apps = "redacted"
Name = "redacted
Notes = "redacted"
}
}
Actually I think that tags with special characters (. :
etc), you need quotes, see the terraform issue. Could you test it please?
Tags with special characters may need to be quoted, but "normal" tags which are quoted fail the HCL parser:
Error: Invalid argument name
on main.tf line 79, in resource "aws_vpc" "SpeechIQ-Prod":
79: "Name" = "SpeechIQ-Prod"
Argument names must not be quoted.
For clarity, tags need to have the quotes removed after pulling the tf.
Duplicate of #487
Just needed to grab a security group from our production account:
It looks like
terraform fmt
complains about the following: