Terraform unable to query AMI ID


I am getting this error recently after I make a new AMI from instance and use that in terraform:

Expected 1 AMI for ID: ami-022a462ecc0b2d590, got none

API call looks like this:
[DEBUG] plugin.terraform-provider-aws_v2.53.0_x4: Action=DescribeImages&ImageId.1=ami-022a462ecc0b2d590&Version=2016-11-15

AWS CLI queries return proper results but terraform fails.

Issue was in image permissions, error message was changed so it was a bit confusing.