title: what is the error in the security group line?
body: <p>security_groups = [&quot;{aws_security_group.allow_ssh.id}&quot;]</p>
  <p>getting the below error for the particular line</p>
  <p>aws_instance.jenkinsec2: Creating...</p>
  <p>Error: Error launching instance, possible mismatch of Security Group IDs and Names. See AWS Instance docs here: <a href="https://terraform.io/docs/providers/aws/r/instance.html" rel="nofollow noreferrer">https://terraform.io/docs/providers/aws/r/instance.html</a>.</p>
  <pre><code>    AWS Error: InvalidParameterValue: Value () for parameter groupId is invalid. The value cannot be empty
      status code: 400, request id: d2184bbd-e63d-49d3-a77b-3997b140ffe0
  </code></pre>