Skip to content

aws_kms: add methods on Alias and IAlias to grant permissions to the Alias instead of the key #22697

@jonnekaunisto

Description

@jonnekaunisto

Describe the feature

In https://github.com/aws/aws-cdk/blob/v2.49.0/packages/@aws-cdk/aws-kms/lib/alias.ts#L159-L162 the grant methods don't do anything, but it is possible to add permissions to just the alias: https://docs.aws.amazon.com/kms/latest/developerguide/alias-authorization.html

This feature request is to do that.

Use Case

We have a key that is not managed by the same CDK package and the easiest way to add access to the key is by using the alias. But we have to do that manually instead of using the grant methods.

Proposed Solution

Not too familiar with this yet

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

N/A

Environment details (OS name and version, etc.)

Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-kmsRelated to AWS Key Managementeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions