Skip to content

bug: Can't encrypt/decrypt using kms alias #6471

@cam-slyp

Description

@cam-slyp

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Javascript aws-sdk v2 encounters an error if a key alias is provided as the KeyId parameter of kms.encrypt

Expected Behavior

Encrypt and decrypt should succeed when called with a KeyId containing the key alias

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

Start latest localstack using default docker-compose.yml

kms-bug.zip

Run ./createKeyAndAlias.sh
Run node index.js

The error below will occur
image

Environment

- OS: MacOS 12.4
- LocalStack: localstack/localstack

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws:kmsAWS Key Management Servicestatus: resolved/fixedResolved with a fix or an implementationtype: bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions