(aws-kms/aws-sqs): Invalid Alias ARN generated for SQS encryptionMasterKey #27733
Labels
@aws-cdk/aws-sqs
Related to Amazon Simple Queue Service
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Describe the bug
When using
Alias.fromAliasName('name')
static method to refer to the KMS key generated outside of the stack, the returned key ARN is not compliant with SQS encryption settings.Expected Behavior
Keyword
alias
is missing in generated ARN.Current Behavior
Invalid alias ARN is generated from https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/aws-kms/lib/alias.ts#L63-L67
Reproduction Steps
CDK constructs:
Generated CFN template as :
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
v2.103.1
Framework Version
No response
Node.js Version
18
OS
macOS
Language
TypeScript
Language Version
TypeScript 5.0.3
Other information
No response
The text was updated successfully, but these errors were encountered: