Error: Error launching source instance: InvalidGroup.NotFound

why do i keep getting this error with this :slight_smile:

variable “instance_count” {
default = “1”
}

provider “aws” {
region = “us-west-1”
}
resource “aws_instance” “example” {
ami = “ami-0f6c23a2bfb63fbf1”
instance_type = “t2.micro”
key_name = “t2micro-1”
subnet_id = “subnet-0ed94bac4f4b30874”
security_groups = ["${aws_security_group.allow_rdp.name}"]

}

resource “aws_security_group” “allow_rdp” {
name = “allow_rdp”
description = “Allow RDP traffic”

ingress {

from_port   = 3389 #  By default, the windows server listens on TCP port 3389 for RDP
to_port     = 3389
protocol =   "tcp"

cidr_blocks =  ["0.0.0.0/0"]

}
}