---
title: "DSM Accelerator Webservice Deployment on AWS Lambda"
slug: "dsm-accelerator-webservice-deployment-on-aws-lambda"
updated: 2026-04-10T09:55:20Z
published: 2026-04-13T07:24:26Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.fortanix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DSM Accelerator Webservice Deployment on AWS Lambda

## 1.0 Introduction

The Fortanix-Data-Security-Manager (DSM) Accelerator Webservice distribution is packaged in a way that makes it versatile for multiple different strategies.

This article describes the procedure to **deploy the Fortanix DSM Accelerator Webservice on Amazon Web Services (AWS) Lambda**.

## 2.0 Overview

The AWS Lambda functions operate on an event-driven architecture, while the Fortanix DSM Accelerator Webservice primarily follows a REST-based paradigm. A new binary has been introduced to ensure seamless operation of the Fortanix DSM Accelerator Webservice within the Lambda environment, despite the architectural disparities. This Fortanix DSM Accelerator Webservice image is compatible and can be used in both container deployments and Lambda function deployments, ensuring a consistent experience across different deployment scenarios.

> [!NOTE]
> NOTE
> 
> It is important to note that the Fortanix DSM Accelerator Webservice images released before version 4.22 do not include this binary, which means that this deployment will not function correctly on those earlier versions.

*For more information, refer to the*[*Official AWS GitHub*](https://github.com/awslabs/aws-lambda-rust-runtime)*repository. This project includes all the essential components necessary for compiling a Rust binary that is compatible with Lambda.*

![](https://cdn.us.document360.io/c3bd85d2-4ad8-4d85-9f60-f1c168a3aad9/Images/Documentation/architecture.png)

**Figure 1: Workflow**

> [!NOTE]
> NOTE
> 
> This binary differs from the Fortanix DSM Accelerator Webservice binary and is specifically intended for use with the Lambda service. As this binary resides within the same container image, additional steps must be undertaken during the container image deployment process.

## 3.0 Deployment Procedure

> [!NOTE]
> NOTE
> 
> Before performing the deployment steps, ensure that the Fortanix DSM Accelerator Webservice image is available in your Elastic Container Repository (ECR). *For more information on how to push a Docker image to ECR, refer to the*[*AWS official documentation*](https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html)*.*

Perform the following steps to utilize the Fortanix DSM Accelerator image and publish it to their ECR for deploying a Lambda function:

1. Go to the AWS Lambda Home page.
2. Click **Create Function**.
3. Select the **Container Image** option as the deployment method, as the image will be sourced from ECR.
4. Set the function name and choose the ECR image.
5. Configure the necessary permissions. *For more information, refer to the*[*AWS official documentation*](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#gettingstarted-images-permissions)*.*
6. Click the **Create Function** button.

After successful creation, you can access the function's details page.

## 4.0 Configure the Image Entrypoint

Lambda provides the capability to override the ENTRYPOINT specified in the Docker file, allowing the utilization of the Fortanix DSM Accelerator Webservice image while ensuring that the Lambda binary is executed.

Perform the following steps to configure the image entrypoint:

1. Scroll to the **Image Configuration** section in the **Image** tab of the **Function** page.
2. Click **Edit** to override the entrypoint to `/app/dsma-lambda`. *For more information, refer to the*[*AWS official documentation*](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html#images-parms)*.*

> [!NOTE]
> NOTE
> 
> The command-line arguments can also be overridden here; the DSM Accelerator Webservice CLI flags, such as, `API_ENDPOINT` can be set as arguments. However, in this deployment, `ENV` variables will be employed for this purpose.

## 5.0 Configure the Environment Variables

Perform the following steps to configure the environment variables:

1. Navigate to the **Configuration** tab and select the **Environment Variables** option.
2. Click **Edit.**
3. Update the value for the `FORTANIX_API_ENDPOINT` environment variable to specify the DSM Accelerator Webservice endpoint.

*For more information, refer to the*[*AWS official documentation*](https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html)*.*

## 6.0 Create a Function URL

A function URL facilitates interaction with Fortanix DSM Accelerator Webservice APIs using the REST interface. The function URL effectively serves as the host for the Fortanix DSM Accelerator Webservice and can be employed in REST calls accordingly. *For more information, refer to the*[*AWS official documentation*](https://docs.aws.amazon.com/lambda/latest/dg/urls-configuration.html#create-url-console)*.*

To monitor Fortanix DSM Accelerator Webservice logs and function performance, similar to running a standalone Fortanix DSM Accelerator Webservice container, you can utilize CloudWatch. *For more information, refer to the*[*AWS official documentation*](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs.html)*.*

You can now seamlessly operate the Fortanix DSM Accelerator Webservice container image as an AWS Lambda Function within the AWS ecosystem.

## 7.0 Examples for Other Fortanix DSM Accelerator Offerings

This section describes examples of other Fortanix DSM Accelerator offerings for AWS Lambda configuration.

### 7.1 AWS Lambda for JCE Provider

Click the package below to download the Fortanix DSM Accelerator JCE Provider example for AWS Lambda:

- [*JCE Client Examples*](https://fortanix-fileshare.s3.us-west-1.amazonaws.com/dsma-jce-lambda-example.zip)

*For more information on the build and deployment steps, refer to the*`README`*file available in the package.*

> [!NOTE]
> NOTE
> 
> The PKCS#11 client has not been tested on AWS Lambda.

Fortanix Data Security Manager (DSM) is the world’s first cloud service secured with Intel® SGX. With Fortanix DSM, you can securely generate, store, and use cryptographic keys and certificates, as well as other secrets such as passwords, API keys, tokens, or any blob of data. Your business-critical applications and containers can integrate with Fortanix DSM using legacy cryptographic interfaces (PKCS#11, CNG, and JCE) or using the native Fortanix DSM RESTful interface.
