Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Region deployment fails to create all lambda environment variables #22

Closed
mfazz opened this issue Nov 23, 2021 · 2 comments
Closed

Comments

@mfazz
Copy link

mfazz commented Nov 23, 2021

When deploying AHA in multi-region mode, I am getting the error:

[ERROR] KeyError: 'ACCOUNT_IDS'
Traceback (most recent call last):
  File "/var/task/handler.py", line 872, in main
    describe_org_events(health_client)
  File "/var/task/handler.py", line 734, in describe_org_events
    if os.environ['ACCOUNT_IDS'] == "None" or os.environ['ACCOUNT_IDS'] == "":
  File "/var/lang/lib/python3.8/os.py", line 675, in __getitem__
    raise KeyError(key) from None

Looking at cloudformation, it appears the line starting below doesn't create ACCOUNT_IDS as an environment variable for the secondary region -

Environment:

mfazz pushed a commit to mfazz/aws-health-aware that referenced this issue Dec 9, 2021
mfazz pushed a commit to mfazz/aws-health-aware that referenced this issue Dec 9, 2021
@jordanaroth
Copy link
Contributor

Taking a look at this.

@andrewcr7
Copy link
Contributor

Reviewed, Jordan resolved the issue here and in Issue #37

Will close this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants