Terraform 1.5.0 implementing in a loop creating AWS EC2 instances despite using count parameter
I'm optimizing some code but I recently switched to I'm using Terraform 1.5.0 to manage my AWS infrastructure, and I've run into a frustrating scenario where my configuration appears to be exploring in a loop, endlessly trying to create EC2 instances... I've defined an EC2 instance resource with a count parameter to specify how many instances I want to create. However, every time I run `terraform apply`, it keeps trying to create the same instances over and over, and I get the following behavior message: ``` behavior: behavior launching instance: InvalidParameterValue: The specified instance type does not exist ``` I've verified that the instance type I'm using is valid in the specified region, and I even checked the AWS Console to confirm that there are no existing instances with the same parameters. My configuration looks like this: ```hcl provider "aws" { region = "us-west-2" } resource "aws_instance" "my_instance" { count = 3 ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" tags = { Name = "TerraformInstance" } } ``` I also tried to run `terraform plan` before applying, and it shows that it wants to create the same three instances each time. I attempted to change the count number to 2 and back to 3, but the same scenario continues. I've also ensured that my AWS credentials are correctly configured and have the necessary permissions to create EC2 instances. It's bizarre because when I reduce the count to 1, it works without any issues. What could be causing Terraform to repeatedly attempt to create these instances despite them not existing? Are there any known issues with the count parameter in this version of Terraform? Any help would be greatly appreciated! This is for a desktop app running on Ubuntu 20.04. I'm on Windows 11 using the latest version of Hcl.