Actually i created EC2 Vm using terraform by count first time it got created while try to create another one for example if I gave count 2 it creates only one instance and if I gave count 1 it destroy the previous ones please help me regarding.
provider "aws"{
profile = "default"
region = var.region
}
resource "aws_instance" "hello" {
count=1
ami = var.ami
instance_type = "t2.micro"
tags = {
Name = "EC2 instance creation"
}
}