Skip to content

Problem with aws_security_group in JSON format #5140

Closed
@thattommyhall

Description

Not working

{
  "resource" : {
    "aws_security_group" : {
      "allow_external_http_https" : {
        "tags" : {
          "Name" : "allow_external_http_https"
        }
      }
    }
  }
}
Error loading config: Error loading test/vpc.tf: position -: resource must be followed by exactly two strings, a type and a name

Whereas this works

{
  "resource" : {
    "aws_security_group" : {
      "allow_external_http_https" : {
        "name" : "allow_external_http_https",
        "tags" : {
          "Name" : "allow_external_http_https"
        }
      }
    }
  }
}

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions