cloudposse / cloudposse/terraform-aws-eks-workers

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

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
HCL
Stars
92
Forks
78
PR merge metrics
No merged PRs in 30d

Description

### 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_

Contributor guide

Open the contributing guide

Research direction

Start at main.tf around line 158 and inspect the aws_ami.eks_worker data source reported at line 147. Reproduce the query in the me-central-1 region, then verify that the AMI owner account can be supplied for that region. Done means the module returns worker AMI results in UAE without requiring a source edit.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, terraform
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.