Skip to content

Instantly share code, notes, and snippets.

View bilousov94's full-sized avatar

Valentyn Bilousov bilousov94

View GitHub Profile
@bilousov94
bilousov94 / encrypt-secrets-lambda.py
Last active May 15, 2020 22:51
Source code for lambda function to encrypt data with kms and store it in s3
import json
import boto3
import base64
def lambda_handler(event, context):
# data, which we will encrypt
mydata = {
"secret": "something important",
"password": "very_secret_password",