Open emileten opened 9 months ago
I'm interested in this because I've hit that so many time
The simplest solution I found was to test the handler using pytest https://github.com/developmentseed/eoAPI/blob/main/infrastructure/aws/tests/test_bootstrap.py
The simplest solution I found was to test the handler using pytest
👍
Some errors show up only when it runs in the lambda though...
I would be surprised there is no way to quickly link the lambda error to a cloudformation error. This seems related https://github.com/aws/aws-cdk/issues/20933.
Some errors show up only when it runs in the lambda though...
Sure
https://github.com/aws/aws-cdk/issues/20933#issuecomment-1647345584 this comment seems interesting but maybe overkill
here is simple example of the provider
code https://github.com/aws-samples/image-optimization/blob/31875ea952dc3810f5ebafc0e505b40f4ee44383/lib/my-custom-resource.ts
The way the database deployment works is :
pgstac
mechanism in that RDS instance(3) happens during the deployment. However, if it fails, the CDK doesn't catch the error, but doesn't consider the deployment finished either, and keeps waiting that the stack finishes deploying until we hit the time limit.