Faasera Documentation

Cloud Functions Integration Guide

Faasera supports seamless deployment of its core components via cloud-native Functions-as-a-Service (FaaS) on AWS, Azure, and Google Cloud. This guide covers deploying Faasera Profiler and Masking services using cloud functions.


Supported Platforms

Cloud Platform Function Type Use Cases
AWS Lambda Real-time masking/profiling via API Gateway
Azure Azure Functions Batch & stream data compliance workflows
Google Cloud Cloud Functions Lightweight API-based masking for GCS/BigQuery

General Setup

All Faasera cloud functions follow the same deployment pattern:

  1. Package your Faasera JAR or Python function.
  2. Define your cloud-specific entry point.
  3. Deploy via CLI or UI.
  4. Connect triggers (HTTP, storage events, etc.).

Package Structure

For Java-based functions:

/faasera-function/
├── build/libs/faasera.jar
├── config/
│   └── policy.json
└── handler/
    └── FunctionHandler.java

For Python:

/faasera-function/
├── main.py
├── requirements.txt
└── config/
    └── policy.json

AWS Lambda

Deployment Steps

  1. Build ZIP with dependencies.
  2. Create IAM Role with Lambda + VPC access (optional).
  3. Deploy using:
aws lambda create-function   --function-name FaaseraFunction   --runtime java11   --handler com.faasera.FunctionHandler   --zip-file fileb://faasera.zip   --role arn:aws:iam::123456789:role/lambda-role
  1. Optional: Attach API Gateway or EventBridge for triggers.

Azure Functions

Supported Types

Deployment

func azure functionapp publish faasera-comply-function

Ensure you set the FUNCTIONS_WORKER_RUNTIME to java or python as per your implementation.


Google Cloud Functions

Deployment

gcloud functions deploy faasera-function   --runtime java11   --trigger-http   --entry-point com.faasera.FunctionHandler   --memory 512MB

Configuration Options

Pass configurations using:


Testing

All functions support:


Example Payload (Masking)

{
  "requestId": "xyz-123",
  "mode": "MULTI_RULE_BATCH",
  "records": [
    {
      "ruleName": "EMAIL_ADDRESS",
      "value": "john.doe@example.com"
    }
  ]
}

References