Description
Summary
To run our integration (e2e) tests we deploy resources to an AWS account via CDK. These resources are spun up right before the test and then destroyed immediately afterwards. When we first wrote this infrastructure, CDK didn't allow programmatic use and so we had to rely on some workarounds. In the past months however CDK has released a new alpha module called @aws-cdk/cli-lib-alpha
(link) that could potentially replace our workarounds.
We should look into this module and create an utility that can be used in all the tests that require AWS resources.
Why is this needed?
The current implementation relies on an internal CDK API. As such, its implementation can change at any time and break our test infrastructure. This has happened in one of the latest releases of CDK.
Which area does this relate to?
Tests
Solution
No response
Acknowledgment
- This request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status