Skip to content

KmsKeyringNode creating errir #1582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sehyoung-james opened this issue Apr 25, 2025 · 0 comments
Open

KmsKeyringNode creating errir #1582

sehyoung-james opened this issue Apr 25, 2025 · 0 comments

Comments

@sehyoung-james
Copy link

sehyoung-james commented Apr 25, 2025

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);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant