aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.62k stars 1.01k forks source link

Support kms-key-arn config in lambda functions. #1197

Open tachang opened 5 years ago

tachang commented 5 years ago

In the lambda deploy aws cli you can do:

[--kms-key-arn ] The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.

I would expect the code here to take the variable from the config.json:

https://github.com/aws/chalice/blob/master/chalice/deploy/deployer.py#L694

But it isn't there. Is there another way?

jamesls commented 5 years ago

This is not possible in chalice but I think it would be good to add, marking as a feature request. I'm going to update the title to reflect this.