(custom-resources): enable custom environmentEncryption for the provider lambda functions #26197
Labels
@aws-cdk/custom-resources
Related to AWS CDK Custom Resources
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
When using the
Provider
construct (link) to create custom resources, the CDK creates 'provider' lambda functions that invoke the user-defined function. It should be possible to customize the environmentEnvryption property of the provider lambdas.Use Case
Some customers want to be able to control the KMS keys used for environment variable encryption so that they can use a key that they can view, manage, and audit their use.
Proposed Solution
No response
Other Information
A workaround to customize the key before this feature is implemented would be to use an escape hatch and modify the
kmsKeyArn
property of the underlying Function.Escape hatch documentation
To access the nodes in the construct tree that represent the provider functions, you will need to use the node.tryFindChild() function with the id "framework-onEvent", "framework-isComplete", "framework-onTimeout"
Acknowledgements
CDK version used
2.86
Environment details (OS name and version, etc.)
All
The text was updated successfully, but these errors were encountered: