Skip to content

KmsKeyringNode creating errir #1582

Open
@sehyoung-james

Description

@sehyoung-james

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions