Closed astuyve closed 1 year ago
…s directly using aws sdk v3 in node18
Fixes #395
Users directly sending custom metrics from Lambda using node 18 previously had to supply their own version of the kms client from the aws sdk v2.
This code honors both v2 sdk or v3 sdk. We can see in node 18, the v3 kms client is loaded:
and I confirmed metrics are sent properly:
Manually as well as unit tests.
…s directly using aws sdk v3 in node18
What does this PR do?
Fixes #395
Motivation
Users directly sending custom metrics from Lambda using node 18 previously had to supply their own version of the kms client from the aws sdk v2.
This code honors both v2 sdk or v3 sdk. We can see in node 18, the v3 kms client is loaded:
and I confirmed metrics are sent properly:
Testing Guidelines
Manually as well as unit tests.
Additional Notes
Types of Changes
Check all that apply