Gustavo Pinatti
Gustavo Pinatti

Reputation: 21

Local tests with AWS Cloud Development Kit (CDK)

I recently started to develop a serverless application using the AWS CDK with typescript. It's a much better option than doing everything via console since I can host the code in a repository and the organization and maintenance also benefit greatly from this feature. However one of the points that the aws console helped a lot was the quick tests that could be done, you wrote a lambda and could test it right there without problems. However, with the CDK, you need to deploy first, throw the updates in the cloud and only then be able to test there. Is there any way to test the CDK locally? Not just lambdas, but something that simulates aws features as a whole?

Upvotes: 2

Views: 3102

Answers (1)

smac2020
smac2020

Reputation: 10724

The testing process for the AWS CDK is described in the AWS Cloud Development Kit (CDK) Developer Guide. This topic contains a lot of detailed information. However, there is no mention of how to test locally, so it does not look like it's possible. See this topic for more information.

Testing constructs

Upvotes: 2

Related Questions