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

Crashes in [resource_handlers.py] #117

Open
andrejk-phsa opened this issue Apr 24, 2024 · 1 comment
Open

Crashes in [resource_handlers.py] #117

andrejk-phsa opened this issue Apr 24, 2024 · 1 comment

Comments

@andrejk-phsa
Copy link

Traceback (most recent call last):
  File "D:\Projects\_github\_cloud\terravision\terravision", line 265, in <module>
    cli(
  File "C:\Python310\lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "C:\Python310\lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "C:\Python310\lib\site-packages\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Python310\lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Python310\lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "D:\Projects\_github\_cloud\terravision\terravision", line 188, in draw
    tfdata = compile_tfdata(source, varfile, workspace, debug, annotate)
  File "D:\Projects\_github\_cloud\terravision\terravision", line 64, in compile_tfdata
    tfdata = graphmaker.handle_special_resources(tfdata)
  File "D:\Projects\_github\_cloud\terravision\modules\graphmaker.py", line 462, in handle_special_resources
    tfdata = getattr(resource_handlers, handler)(tfdata)
  File "D:\Projects\_github\_cloud\terravision\modules\resource_handlers.py", line 301, in aws_handle_lb
    tfdata["meta_data"][connection].get("count")
KeyError: 'aws_apigatewayv2_integration.this[$default]'

Probably needs a check if connection exists:
tfdata["meta_data"].get(connection, {})

@patrickchugh
Copy link
Owner

can you try again with the latest release?

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

2 participants