Terraform code for new EC2 ignores region

Here is the code I’m using but no matter what, it puts the EC2 in us-west-2 (even though I got the AMI from us-east-2 today and it’s a current AMI). What might be causing it to ignore my requested region? Key and Secret replaced by hidden.

provider “aws” {
region = “us-east-1”
access_key = hidden
secret_key = hidden
}

resource “aws_instance” “myec2” {
ami = “ami-05fa00d4c63e32376”
instance_type = “t2.micro”
}