Deploy a Lambda function within your infrastructure to enable Formal HTTP Sidecar to decrypt sensitive data.
You can deploy this AWS Lambda function in two ways:
- Using the serverless framework To deploy using the Serverless framework, run the following commands:
make deploy
sls deploy
Once deployed you will be able to use the API url provided by AWS API Gateway to configure the Formal frontend to call the lambda and decrypt encrypted log payload.
- Using Docker and the provided Dockerfile To deploy using Docker, you should follow those steps:
- Build the docker image
- Push the docker image to your docker registry (ECR)
- Create a lambda function using the docker image as the runtime
- Create an API Gateway to expose the lambda function