Can someone tell me how to create a KMS key using serverless yml and refer the same for an API or a lambda function ?
I am looking for example of creating KMS key using “resources”. Can someone point me to one such sample ?
regards
Arun
The resources
section in serverless.yml
is just CloudFormation. Check the docs for KMS keys for all the hotness (also relevant, key policies).
It would look something like this:
resources:
Resources:
Type: "AWS::KMS::Key"
Properties:
Description: "I am a key"
Enabled: true
KeyPolicy: **JSON**