Open cep21 opened 3 years ago
Interesting, I had tested it and it seemed to work fine. I will change the code to the following:
except Exception as e:
logger.exception(f"ERROR: {e}")
logger.error("ERROR: Invocation Failed")
return (1)
Thanks for this great code.
I just set this up for our organisation and hit this very error. Thanks for the fix.
I got here by following this very helpful blog post --> https://aws.amazon.com/blogs/networking-and-content-delivery/hostname-as-target-for-network-load-balancers/ The post points the user to a zip file in this git repo that has this error (for me anyway).
https://github.com/aws-samples/hostname-as-target-for-elastic-load-balancer/tree/main/source https://github.com/aws-samples/hostname-as-target-for-elastic-load-balancer/blob/main/source/ElbHostnameAsTarget.zip
Ran into this error today and solved by changing line 191 to
logger.error("ERROR: " + str(e))
The lambda includes the following code:
https://github.com/aws-samples/hostname-as-target-for-elastic-load-balancer/blob/main/source/elb_hostname_as_target.py#L191
This causing a python error if triggered
I think you want to use this instead