Closed
Description
Summary
Currently as part of the integration tests of the Parameters utility we are creating a number of resources. For SSMProvider
specifically we are creating some SSM SecureString resources.
CDK doesn't have any dedicated L2 construct for this type of resource and so, the current implementation of the tests relies on a custom resource backed by AWS Lambda to create the secure strings.
Why is this needed?
The current implementation requires us to maintain a dedicated Lambda function, which has the single purpose of creating and deleting a given SecureString resource.
Which area does this relate to?
Tests, Parameters
Solution
Refactor this custom resource to use AwsCustomResource
instead. This will allow us to not have to manage a custom resource and provider, and thus delegate the responsibility to CDK.
Acknowledgment
- This request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Python, Java