The way the database deployment works is :
- Create an RDS instance
- Create a lambda with the runtime code that creates the
pgstac mechanism in that RDS instance
- Create a 'custom resource', aka a one-time trigger for that lambda that happens at deployment time.
(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.