AWS Builder Center

AWS Lambda Web Functions for Private Equity and Venture Capital Fund Analytics - Part 1

AWS Lambda Web Functions for Private Equity and Venture Capital Fund Analytics - Part 1

Series: Financial Service (33 articles)

  1. …
  2. 22
    AWS Lambda Web Functions for Private Equity and Venture Capital Fund Analytics - Part 1 This article
Dev @ Vertex Macro

Business scenario

A private equity or venture capital trader already has an internal performance-tracking application built with Fastify or Express. The application consolidates portfolio positions, fund cash flows, benchmark data, SEC regulatory values, and external market data.
The target design removes two infrastructure burdens:
  1. No continuously running Amazon EC2 instance for the web application.
  1. No operating-system cron job on EC2 for the daily data refresh.
The recommended design uses two Lambda capabilities:
  • AWS Lambda Web Functions for the Express or Fastify HTTP application. A Web Function runs a Node.js HTTP server directly, exposes an HTTPS endpoint, scales with traffic, and can scale to zero while idle.
  • AWS Lambda Event Functions for daily scheduled ingestion and calculation. Amazon EventBridge Scheduler invokes this function, which calls approved external data providers, calculates fund metrics, and writes versioned results to Amazon S3.
Important architecture decision: Do not use the public web endpoint as the daily scheduler target. AWS documentation positions Web Functions for HTTP traffic and Event Functions for event-driven processing. Keeping the scheduled worker separate also prevents an HTTP timeout, narrows IAM permissions, and lets the web tier remain read-only for analytical output.



Target architecture

The request flow begins with a fund user or trader workstation connecting over HTTPS through enterprise SSO or another approved signed-request mechanism. The request reaches the Lambda Web Function that runs the Express or Fastify analytics API. The web application receives read-only access to the published analytical output in Amazon S3 by using narrowly scoped  s3:GetObject  and, only where required,  s3:ListBucket  permissions.
The S3 analytics bucket separates data into four logical prefixes. The  raw/  prefix stores immutable vendor extracts. The  curated/  prefix stores normalized holdings and cash-flow data. The  metrics/  prefix stores calculated fund metrics. The  manifests/  prefix records run status, calculation versions, source timestamps, and data lineage.
A separate Lambda Event Function named  daily-fund-refresh  writes approved output to these S3 prefixes by using SSE-KMS encryption. Amazon EventBridge Scheduler invokes this worker every day according to the defined cron expression, retry policy, and dead-letter queue configuration.
The supporting security and operational controls include AWS Secrets Manager, AWS KMS, Amazon CloudWatch Logs and alarms, AWS CloudTrail, AWS Identity and Access Management, an Amazon SQS dead-letter queue, and AWS Config.

Why this design fits the use case

  • No idle server: Lambda Web Functions scale based on HTTP traffic instead of requiring a permanently running EC2 host.
  • No EC2 cron administration: EventBridge Scheduler owns the schedule, retry policy, and failed-delivery path.
  • Separation of duties: The web application reads published analytics; the scheduled worker writes new datasets.
  • Reproducibility: Every run writes date-partitioned source data, computed metrics, and a manifest containing calculation version and source timestamps.
  • Controlled blast radius: Compromising the web endpoint does not automatically grant permission to overwrite fund calculations.



Fund analytics data model

Fund management metrics

Top Holdings

Top Holdings identifies the dominant underlying positions driving overall portfolio concentration. Store  issuer_id ,  security_id ,  fair_value ,  fund_nav ,  weight_pct ,  rank , and  as_of_date . Calculate each position weight as  fair_value / NAV . Publish Top 10 Exposure and a concentration measure such as the Herfindahl-Hirschman Index, or HHI.

Portfolio Concentration

Portfolio Concentration measures the degree to which NAV depends on a small set of assets. Calculate the sum of the Top 5 and Top 10 weights. Calculate HHI as the sum of squared position weights. Optionally flag “whale rocking” when one asset creates a material NAV movement.

Largest Trades

Largest Trades identifies significant quarterly changes in position sizing. Retain beginning quantity and value, ending quantity and value, purchases, disposals, corporate actions, foreign-exchange effects, percentage change, and the source, such as Form 13F. Distinguish true trades from movements caused only by valuation changes.

Portfolio Structure

Portfolio Structure describes how capital is distributed across risk layers. Capture vintage, sector, geography, stage, security type, cap-table ownership, liquidation preference, seniority, and committed versus invested capital.

Fund performance analytics

Net Asset Value

Net Asset Value, or NAV, is the fair value of assets less liabilities at the valuation date. Retain the valuation policy, price source, foreign-exchange rate, and valuation timestamp.

Total Value to Paid-In

Total Value to Paid-In, or TVPI, is calculated as  (Residual Value + Distributions) / Paid-In Capital . Store the numerator and denominator rather than retaining only the calculated ratio.

Distributions to Paid-In

Distributions to Paid-In, or DPI, is calculated as  Cumulative Distributions / Paid-In Capital . Present it beside TVPI to separate realized value from unrealized value.

Residual Value to Paid-In

Residual Value to Paid-In, or RVPI, is calculated as  Residual Value / Paid-In Capital . TVPI should reconcile to DPI plus RVPI, subject to the approved rounding tolerance.

Internal Rate of Return

Internal Rate of Return, or IRR, is a cash-flow discount rate based on the timing of contributions and distributions. Use dated cash flows and XIRR-style timing. Document day-count conventions, cash-flow sign rules, interim NAV treatment, and numerical solver tolerance.

J-Curve Progression

J-Curve Progression tracks net cash flows, NAV, and cumulative value by fund age. Compare the fund with peers from the same strategy and vintage instead of using an undifferentiated peer set.

Situational Awareness Performance History

Situational Awareness Performance History provides real-time, cycle-specific tracking of active capital deployment during macroeconomic pivots. Track dry-powder velocity, capital calls, deployment pace, drawdowns, liquidity runway, vulnerability stress scenarios, drawdown mitigation, and mark-to-market staleness or realism.

Performance versus the S&P 500

For Performance versus the S&P 500, implement a documented Public Market Equivalent method such as Kaplan-Schoar PME instead of directly comparing private-fund IRR with an index price return. Include dividends, cash-flow dates, the benchmark identifier, and foreign-exchange treatment.

Alpha and Tracking Analysis

For alpha capture, tracking error, relative return profiles, and beta-adjusted spread, use a clearly documented public-market proxy and measurement period. Avoid presenting conventional daily tracking error as directly comparable when private valuations are quarterly and smoothed.

AUM Reported to the SEC

For AUM reported to the SEC, store the Form ADV Part 1A filing date, amendment type, reporting period, Regulatory Assets Under Management, gross asset valuation method, compliance reporting threshold, source document, and retrieval timestamp. Do not treat RAUM as identical to investor NAV.

Recommended S3 keys

s3://pe-vc-fund-analytics-prod/raw/provider=market-data/as_of=2026-10-29/data.json
s3://pe-vc-fund-analytics-prod/raw/provider=sec-adv/as_of=2026-10-29/data.json
s3://pe-vc-fund-analytics-prod/curated/fund_id=FUND-001/as_of=2026-10-29/positions.parquet
s3://pe-vc-fund-analytics-prod/metrics/fund_id=FUND-001/as_of=2026-10-29/summary.json
s3://pe-vc-fund-analytics-prod/manifests/run_date=2026-10-29/run_id=<uuid>.json
Do not put investor names, personal identifiers, credentials, or confidential free-form notes in object keys because keys appear in operational and audit records.



Prerequisites

Before using the AWS Management Console, prepare:
  • An AWS account governed through AWS Organizations, ideally with separate development, test, and production accounts.
  • An IAM administrator or deployment role with permissions for Lambda Web Functions, Lambda Event Functions, IAM role creation/pass role, Amazon S3, AWS KMS, EventBridge Scheduler, SQS, CloudWatch, and Secrets Manager.
  • Node.js application source compatible with the runtime shown by the Web Function console. AWS documentation lists Node.js 24 or later as an optional local-development prerequisite for the current Web Function workflow.
  • Approved external-provider API endpoints, licensing terms, rate limits, egress IP requirements, credentials, and data-retention terms.
  • A defined business timezone. This guide schedules at 06:15 Asia/Hong_Kong after the prior US market day, but production logic must account for vendor publication times, holidays, and late corrections.
  • A calculation-control document specifying metric formulas, valuation policy, benchmark methodology, rounding, data cutoffs, and approval ownership.



Step 1: Create the KMS key

  1. Sign in to the AWS Management Console.
  1. Open Key Management Service (KMS).
  1. Choose Customer managed keys and then Create key.
  1. Select:
  • Key type: Symmetric
  • Key usage: Encrypt and decrypt
  1. Choose Next.
  1. Alias:  alias/pe-vc-fund-analytics-prod .
  1. Add a description identifying the workload, environment, data owner, and ticket/change record.
  1. Select tightly controlled key administrators. Do not make the Lambda execution roles key administrators.
  1. Initially select the deployment administrator as a key user. The Lambda roles are added after they are created.
  1. Review the key policy and create the key.
  1. Turn on key rotation according to corporate policy.
Use a customer-managed KMS key when the fund requires explicit key policy control, auditable key use, and the ability to revoke workload access. Amazon S3 already applies a baseline of server-side encryption, but SSE-KMS is usually the stronger governance choice for regulated fund analytics.



Step 2: Create and secure the S3 bucket

  1. Open Amazon S3.
  1. Choose Create bucket.
  1. Bucket name example:  pe-vc-fund-analytics-prod-<account-id>-ap-east-1 .
  1. Choose the approved Region.
  1. Leave Block all public access enabled.
  1. Enable Bucket Versioning.
  1. Under Default encryption:
  • Choose Server-side encryption with AWS Key Management Service keys (SSE-KMS).
  • Select  alias/pe-vc-fund-analytics-prod .
  • Enable S3 Bucket Key where appropriate to reduce KMS request cost.
  1. Create the bucket.
  1. Open the bucket and create logical prefixes only if helpful:  raw/ ,  curated/ ,  metrics/ , and  manifests/ . S3 does not require folders in advance.
  1. Under Properties, configure lifecycle rules based on the legal retention schedule. Example: transition immutable raw files to a lower-cost storage class after 90 days and retain them for seven years only if legal, compliance, and vendor-license requirements support that period.
  1. Consider S3 Object Lock only when the bucket is specifically designed for immutable books-and-records retention and the legal team has approved governance or compliance mode. Test this in a non-production account first.

Suggested bucket policy controls

Add explicit denials for:
  • Requests that do not use TLS:  aws:SecureTransport = false .
  • Object uploads that do not use the approved KMS key.
  • Access outside an approved AWS Organization or VPC endpoint, if that matches the network design.
Avoid a broad  s3:*  grant. The worker needs write access to defined prefixes; the web application generally needs only read access to  metrics/  and optionally  manifests/ .



Step 3: Store external API credentials in Secrets Manager

  1. Open AWS Secrets Manager.
  1. Choose Store a new secret.
  1. Select Other type of secret.
  1. Enter key/value pairs such as:
{
"apiKey": "replace-with-provider-key",
"baseUrl": "https://api.approved-provider.example"
}
  1. Encrypt with  alias/pe-vc-fund-analytics-prod  or a separate secrets key if required by policy.
  1. Secret name:  prod/pe-vc-fund-analytics/market-data-provider .
  1. Add tags for application, environment, data owner, cost center, and confidentiality.
  1. Configure rotation only if the provider supports an automated credential-rotation workflow.
  1. Create the secret.
Never place an API key in application source, a ZIP file, plaintext environment variables, an EventBridge input payload, or CloudWatch logs.



Step 4: Prepare the Express application

Lambda Web Functions run the framework's normal HTTP server. A minimal Express application can remain conventional:
// server.js
import express from 'express';
import { S3Client, GetObjectCommand } from '@aws-sdk/client-s3';

const app = express();
const s3 = new S3Client({});
const port = Number(process.env.PORT || 8080);

app.disable('x-powered-by');
app.use(express.json({ limit: '256kb' }));

app.get('/health', (_req, res) => {
res.status(200).json({ status: 'ok' });
});

app.get('/api/funds/:fundId/metrics/latest', async (req, res, next) => {
try {
const fundId = req.params.fundId;
if (!/^[A-Z0-9-]{1,40}$/.test(fundId)) {
return res.status(400).json({ message: 'Invalid fund identifier' });
}

// In production, resolve "latest" through a validated manifest or catalog.
const key = `metrics/fund_id=${fundId}/latest/summary.json`;
const result = await s3.send(new GetObjectCommand({
Bucket: process.env.ANALYTICS_BUCKET,
Key: key
}));

const body = await result.Body.transformToString();
res.type('application/json').send(body);
} catch (error) {
next(error);
}
});

app.use((error, _req, res, _next) => {
console.error(JSON.stringify({
level: 'error',
message: 'request failed',
errorName: error.name
}));
res.status(500).json({ message: 'Internal server error' });
});

app.listen(port, '0.0.0.0', () => {
console.log(JSON.stringify({ level: 'info', message: 'server ready', port }));
});
Example  package.json :
{
"name": "pe-vc-fund-analytics-web",
"version": "1.0.0",
"type": "module",
"private": true,
"scripts": {
"start": "node server.js"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.0.0",
"express": "^5.0.0"
}
}
For Fastify, keep the same separation of concerns and listen on  0.0.0.0  using the port provided through  PORT :
await fastify.listen({
port: Number(process.env.PORT || 8080),
host: '0.0.0.0'
});

Package the web application

From the application directory:
npm ci --omit=dev
zip -r pe-vc-fund-analytics-web.zip server.js package.json package-lock.json node_modules
For production, pin dependency versions, run software-composition analysis, generate an SBOM, and retain the build artifact checksum in the release record.



Step 5: Create the Lambda Web Function through the console

  1. Open the AWS Lambda console.
  1. In the navigation pane, choose Web Functions.
  1. Choose Create Web Function.
  1. Under Basic information:
  • Function name:  pe-vc-fund-analytics-web-prod 
  • Runtime: keep the approved/default Node.js runtime.
  • Code source: choose Upload ZIP file.
  • Upload  pe-vc-fund-analytics-web.zip .
  1. Under Endpoint configuration:
  • Endpoint name:  fund-analytics-prod 
  • Type: choose Home-Region for the first deployment.
  1. Create the Web Function.
The console creates the Web Function, an immutable first revision, an endpoint, and supporting resources. A revision is a fixed snapshot; deploy a new revision rather than editing production code in place.

Configure environment variables

Open the Web Function configuration and add:
ANALYTICS_BUCKET=pe-vc-fund-analytics-prod-<account-id>-ap-east-1
NODE_ENV=production
LOG_LEVEL=info
Do not add the external API secret to the web tier unless the HTTP application has a genuine need to call the provider.

Configure resources

Start with conservative resource settings and load-test:
  • Memory: begin around 1 GB for a moderate Node.js analytics API, then right-size using observed latency and memory usage.
  • Request timeout: set a short application-level timeout for downstream calls. The web request must not perform the full daily portfolio calculation.
  • Concurrency: protect downstream dependencies with an explicit maximum or account-level quota planning.

Attach least-privilege permissions

Locate the execution role created or selected by the Web Function. Permit only the reads required by the API:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadPublishedFundMetrics",
"Effect": "Allow",
"Action": ["s3:GetObject"],
"Resource": [
"arn:aws:s3:::pe-vc-fund-analytics-prod-<account-id>-ap-east-1/metrics/*",
"arn:aws:s3:::pe-vc-fund-analytics-prod-<account-id>-ap-east-1/manifests/*"
]
},
{
"Sid": "DecryptAnalyticsObjects",
"Effect": "Allow",
"Action": ["kms:Decrypt"],
"Resource": "<kms-key-arn>",
"Condition": {
"StringEquals": {
"kms:ViaService": "s3.ap-east-1.amazonaws.com"
}
}
}
]
}
Also add the role as an approved key user in the KMS key policy, constrained to decrypt through S3.

Authentication warning

Do not expose confidential PE/VC holdings through an anonymous internet endpoint. Place the endpoint behind the supported identity and access pattern available to your Web Function deployment. For an internal application, require organizational identity, use least-privilege authorization at fund level, and test that one fund team cannot request another fund's data. If the native endpoint controls do not meet the required SSO, WAF, private-network, or token-validation model, front the service with an approved ingress architecture rather than weakening authentication.

Deploy a new revision

  1. Upload the tested artifact as a new Web Function revision.
  1. Review code hash, runtime, environment variables, role, and endpoint routing.
  1. Route test traffic to the new revision if the console exposes weighted or staged traffic controls.
  1. Validate  /health  and a non-sensitive test fund.
  1. Promote the revision only after operational and data-control checks pass.

Series: Financial Service (33 articles)

  1. …
  2. 22
    AWS Lambda Web Functions for Private Equity and Venture Capital Fund Analytics - Part 1 This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article