Delete EC2 Instance Using Terraform

I keep failing the task after setting count to zero.
Don’t know if lab is looking for anything else specific or not.

resource “aws_instance” “ec2” {
ami = “ami-0c101f26f147fa7fd”
instance_type = “t2.micro”
count = 0
vpc_security_group_ids = [
“sg-4a7e9ec54c5a8535b”
]

tags = {
Name = “datacenter-ec2”
}
}

Thanks

Hi @Timmy

I’m not sure which task you’re working on, but I think you should use terraform destroy instead of updating the Terraform resources.