aws-cloudformation / cloudformation-coverage-roadmap

The AWS CloudFormation Public Coverage Roadmap
https://aws.amazon.com/cloudformation/
Creative Commons Attribution Share Alike 4.0 International
1.1k stars 53 forks source link

AWS::KMS::Grant #489

Open carlnordenfelt opened 4 years ago

carlnordenfelt commented 4 years ago

1. Title:

New Resource: AWS::KMS::Grant

2. Scope of request:

New resource for KMS - Manage KMS Grants via CloudFormation

3. Expected behavior

Possible to manage KMS Grants directly through CloudFormation. This includes Create, Update & Revoke via the CloudFormation Create, Update & Delete actions.

4. Test cases

N/A

5. Helpful Links

https://docs.aws.amazon.com/kms/latest/APIReference/API_CreateGrant.html https://www.npmjs.com/package/lulo-plugin-kms-grant (CustomResource implementation)

6. Category:

Security, KMS

lyoungblood commented 3 years ago

This is painful. We also can't create the new asymmetric signing keys with CloudFormation. If AWS cloud doesn't care about full feature support security conscious customers will probably jump ship to GCP.

vdanniel commented 3 years ago

We need this!

koen-serneels commented 3 years ago

+2 on this. Currently a workaround for allowing it to be part of cfn would be to create a lambda calling the KMS API (https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/KMS.html#createGrant-property) but this feels overly complicated for something that should be a primary citizen in the cfn KMS namespace in the first place.

sobil commented 2 years ago

I too am looking for this feature in cfn.

Anyone tried this terraform alternative?: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_grant

ArielPrevu3D commented 2 years ago

As always, CDK users can use AwsCustomResource as a temporary workaround

andreaswittig commented 2 years ago

Cannot believe, that KMS Grants are still not supported by CloudFormation.

banbone commented 1 year ago

@sobil The terraform module works great, but I wish this was a feature in CFN. Having this would be a massive help.

cloudwitch commented 7 months ago

I'm currently staring at a 5 year old lambda custom resource in my cloudformation wondering if I will break things if this it is removed and we need to recreate the account from scratch.

Having it in real CFN would make it a whole lot clearer to me in 5 years when I do this whole song and dance again.