I've just started to work with AWS services, particularly AWS Lambda. Is there a way to use AWS KMS service from within Lambda code (Java). I'd like to use KMS to decrypt an encrypted externalized (read from a property) secret. My Lambda code is in java. Thanks in advance.
相关问题
- Assume/switch role in aws toolkit for eclipse 2.0
- Installing Python dependencies in AWS Codestar wit
- AWS SES on Lambda - fails (silently) to send email
- Running Selenium on AWS Lambda
- AWS Lex + Lambda - Intercepting all of next user r
相关文章
- Is it safe to show the AWS cognito pool ID in my h
- Using AWS Secrets Manager with Python (Lambda Cons
- AWS Lambda SQS Trigger Throttle/Limit
- Denying a Sign-up request in Cognito User Pools
- Export existing AWS Lambda and API Gateway to Clou
- AWS API Gateway and Lambda to return image
- GPU based algorithm on AWS Lambda
- Does AWS RDS encryption with KMS affect performanc
Yes, it should work fine.
I recently ported a Node.js RESTful API over to Lambda and didn't have to change any KMS code.
You'll just need to make sure the role your Lambda function runs under has permissions to the key you setup through AWS to use with the encrypt/decrypt calls.
In Python:
Taken from AWS Labs Chef cleanup source.
The README of that repo explains how to encrypt the PEM file in the first place using the AWS KMS CLI.