Terraform + AWS - The image id '[x]' does not exist

I spent some stupid amount of hours on this simple issue while trying to deploy an instance with a community AMI.

I kept getting The image id '[x]' does not exist, even though I was 100% sure that the AMI ID was definitely correct. Thankfully I stumbled upon this GitHub issue: https://github.com/brikis98/terraform-up-and-running-code/issues/65

Amazon Machine Images (AMI) are REGIONAL

Duh!! Obviously it is! That's basic knowledge 🤦 Definitely a brain fart moment.

Anyway, thanks to m1yag1 on GitHub for sharing the solution.