Skip to content

for AMI's in UAE region, Queries returning no results #130

Description

@NayakwadiR

Describe the Bug

I'm trying to create EKS worker nodes in me-central-1 "UAE" region, via this module's latest version.

I'm getting error saying >>
Error: Your query returned no results. Please change your search criteria and try again.

╷
│ Error: Your query returned no results. Please change your search criteria and try again.
│ 
│   with module.maxapi_eks_workers_01.data.aws_ami.eks_worker[0],
│   on .terraform/modules/maxapi_eks_workers_01/main.tf line 147, in data "aws_ami" "eks_worker":
│  147: data "aws_ami" "eks_worker" {

Since the owner Account of the AMI is "602401143452" which is present in United States.

Can you variablize the Owner Account of the AMI, so i can pass the variable with right account number or
can you update the owner account to use UAE region "759879836304"

The module works for me if I use UAE region account owner

Expected Behavior

In tfvars

ami_owner_account = "" 

Steps to Reproduce

https://github.com/cloudposse/terraform-aws-eks-workers/blob/main/main.tf#L158

Screenshots

No response

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions