Open
Description
package version: "@aws-crypto/client-node": "^3.1.1",
when i call the createKeyringNode API with the arn url, i got below error instead of creating of keyring node.
"Cannot convert object to primitive value"
The KmsKeyringNode API is being called with a KMS ARN as an argument.
I would like to inquire whether issues like this can occur if the KMS configuration is incorrect, or if there are other potential causes for such errors.
Thanks for advance
my-code
async function createKeyringNode(){
try{
/* Create an AWS KMS keyring */
const keyring = new KmsKeyringNode({
process.env.KMS_CMK,
});
return keyring;
} catch(error) {
logger.error(error);
}
}
Metadata
Metadata
Assignees
Labels
No labels