aws / aws/aws-elastic-beanstalk-cli-setup

No matter how I install the eb CLI, when running eb local run I get `ERROR: KeyError - 'image'`

Open
#107 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
537
Forks
226
PR merge metrics
No merged PRs in 30d

Description

**1. Please specify the following:**
- OS: OSX Big Sur 11.3 (20E232)
- Shell Bash and Zsh
- [X] **I have reviewed the troubleshooting tips described [here]() and they do not solve my problem**

**2. Description**
I encounter a very nondescript python error `ERROR: KeyError - 'image'` when running `eb local run`. I have tried installing via script, homebrew, and with my own installation of python. Restarting, updating os, brand new project, nothing has fixed it.

Other `eb` commands seem to work but I am trying to debug issues with my deployed environment, and I can't use local to reproduce the issues on my dev machine, which is very frustrating.

I am not sure if this is related, but the issue I am trying to debug in my deployment is an error when running `eb deploy`:
```
ERROR Service:AmazonECS, Code:ClientException, Message:Container.image should not be null or empty., Class:com.amazonaws.services.ecs.model.ClientException
```

I wonder if `Message:Container.image should not be null or empty` is caused by something similar to `ERROR: KeyError - 'image'`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the `eb local run` entry point on the reported macOS and inspect the traceback around the missing `image` key. Compare it with the reported `eb deploy` ECS error; done means identifying the relevant configuration or input and confirming that local execution no longer raises `KeyError - 'image'`.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.