Hi Guys,
I am trying to launch an EC2 instance using terraform, but it is showing me the below error.
Error: Error launching instance, possible mismatch of Security Group IDs and Names. See AWS Instance docs here: https://terraform.io/docs/providers/aws/r/instance.html.
AWS Error: InvalidParameterValue: Value () for parameter groupId is invalid. The value cannot be empty
status code: 400, request id: de662e5a-4b53-4f83-a1dd-ab476b88061b
on ec2.tf line 6, in resource "aws_instance" "myin2":
6: resource "aws_instance" "myin2" {
How can I solve this error?