Blog · Essay · serverless architecture for regulated systems

Serverless architecture for regulated systems: How a cross‑border fintech pilot uncovered hidden compliance gaps and what CEOs must do today

In the last week I was pulled into a briefing with the Monetary Authority of Singapore (MAS) after a cross‑border fintech pilot using a serverless stack ran afoul of data‑residency rules. The conversation was sparked by a headline that many of you may have seen: AWS, Anthropic Partner Caylent CEO: Cloud AI Governance Will Define The Next Decade. The article talks about governance, but the real story on the ground was far messier: a serverless architecture that looked sleek on paper broke critical compliance controls when data flowed between Singapore and a partner jurisdiction.

What actually broke?

The pilot was built on AWS Lambda, API Gateway, and DynamoDB – a classic serverless stack that promises rapid iteration and cost efficiency. The engineering team focused on latency and scaling, deploying a set of micro‑services that ingested transaction data, performed risk scoring, and wrote results to a central ledger. What they missed was the implicit data residency baked into each service:

  1. Lambda execution environment – by default, functions run in the region they are deployed to, but the underlying container images can pull libraries from a global S3 bucket. Those libraries were pulled from a bucket hosted in the US, creating a de‑facto data export.
  2. DynamoDB global tables – the team enabled multi‑region replication to achieve low‑latency reads for the partner country. The replication policy silently copied raw transaction payloads to a region that MAS does not recognize as a permissible data sink.
  3. API Gateway logging – request logs were streamed to CloudWatch and then to a centralized Splunk instance hosted on a European data center, violating the “data must stay within Singapore unless an explicit waiver is granted” rule.

When the regulator’s compliance audit team ran their checklist, each of those three items raised red flags. The pilot had to be halted, and the fintech startup faced a potential fine and a loss of credibility with its institutional partners.

Why the oversight happened – a CEO‑level lens

From a CEO’s perspective the failure boiled down to execution blind spots:

  • Assumption that serverless = “no infrastructure to manage.” The team treated the platform as a pure abstraction layer, ignoring the fact that every managed service still has a physical footprint, data flow paths, and jurisdictional implications.
  • Missing a compliance‑first design review. The product roadmap prioritized market‑ready features and time‑to‑value, but the compliance gate was placed after the code was already in production.
  • Insufficient cross‑functional ownership. The engineering lead owned the architecture, while the legal and risk teams were consulted only when a regulator knocked on the door.

The lesson is simple: serverless does not eliminate governance. It merely shifts where the governance work lives – from servers you provision to services you consume.

The inspection checklist I run every Monday

When I’m called in to rescue a project, I start with a concrete, five‑point checklist that any CEO can ask their CTO to run before the next sprint:

  1. Data‑flow map for every managed service. Document where input data originates, which services process it, and where the output lands. Include implicit dependencies such as S3 buckets, container image registries, and logging pipelines.
  2. Region‑lock policies. Verify that every serverless component (Lambda, DynamoDB, S3, Kinesis) is explicitly locked to the approved region(s). Use infrastructure‑as‑code guards (e.g., AWS Config rules) to enforce this.
  3. Cross‑region replication review. If you need multi‑region reads, assess whether the replicated data is subject to the same regulatory regime. If not, consider a data‑masking layer before replication.
  4. Logging and monitoring destinations. Ensure that logs, metrics, and audit trails are stored only in compliant regions. If you use third‑party SIEMs, confirm they have a data‑processing agreement that meets local law.
  5. Third‑party library provenance. Scan all external packages for data‑exfiltration risk. Prefer libraries hosted in approved registries and use S3 bucket policies that restrict cross‑region access.

Running this checklist takes an afternoon, but it surfaces the same three failure points that sank the fintech pilot.

What to do this week – concrete Monday actions

If you’re reading this and your organization is already on a serverless path, here are the three things you can start today:

  • Lock down your Lambda functions. In the AWS console, navigate to *Lambda → Functions → Configuration → General configuration* and set the *Region* dropdown to your approved jurisdiction. Then enable *AWS Config* with the rule *lambda-function-restricted-region* to get an automatic alert if anyone tries to deploy elsewhere.
  • Audit DynamoDB global tables. Open the DynamoDB console, select each table, and under *Global tables* verify that no replica exists in an unapproved region. If you find one, disable replication and migrate the data to a compliant region using the *Export to S3* feature followed by a *Import* into a new table.
  • Redirect logs to a compliant bucket. Create an S3 bucket in the approved region, apply a bucket policy that denies any PutObject from outside that region, and update your CloudWatch subscription filters to point to this bucket instead of the external Splunk endpoint.

These three steps will immediately bring you into compliance for the most common pitfalls. The next step is to institutionalize the checklist as part of your CI/CD pipeline – treat it as a non‑negotiable gate before any PR can be merged.

A real‑world remediation story

After the MAS incident, the fintech startup engaged my advisory team to rebuild the platform. We took the same checklist, but we also introduced two governance layers that have become part of their operating model:

  1. Compliance‑as‑Code. Using Terraform Sentinel policies, we encoded the region‑lock and logging‑destination rules directly into the IaC pipeline. Any attempt to drift triggers a hard fail.
  2. Cross‑functional sprint rituals. Every two‑week sprint now begins with a 15‑minute “Compliance Sync” where the legal lead reviews the upcoming feature list and flags any data‑residency concerns.

Within six weeks the new stack passed a full MAS audit, and the startup was cleared to relaunch the pilot. The cost of remediation was roughly 10% of the original development budget – a fraction of the potential fine and reputational damage.

The broader takeaway for CEOs

  • Serverless is a tool, not a shield. Treat it as a new layer of infrastructure that still requires the same governance discipline you applied to VMs.
  • Put compliance early in the product lifecycle. A “compliance‑first” design sprint saves weeks of re‑work and protects your go‑to‑market timeline.
  • Make the checklist visible. Publish the five‑point inspection list on your internal wiki, embed it in your CI/CD dashboard, and hold the engineering leads accountable.

By turning a reactive audit into a proactive habit, you turn a potential crisis into a competitive advantage – faster releases, lower risk, and stronger regulator relationships.

FAQ

What is the biggest misconception CEOs have about serverless in regulated industries?

Many assume that because the cloud provider manages the servers, the provider automatically handles all compliance. In reality, you still control where data lives and how it moves, and you must enforce those controls yourself.

How can I convince my engineering team that compliance work is not a bottleneck?

Show them concrete examples – like the three failures that halted the fintech pilot – and give them the tools (Config rules, Sentinel policies) that make compliance checks automated and fast.

Are there any serverless services that are inherently compliant for Singapore regulators?

No single service is “inherently compliant.” Compliance is a function of how you configure the service – region, networking, logging, and data‑handling settings all matter.

Can I use third‑party monitoring tools without violating data‑residency rules?

Only if the tool stores logs in a region approved by your regulator and you have a data‑processing agreement that meets local law. Otherwise, route logs to a compliant bucket first.

How often should I revisit the compliance checklist?

At least once per quarter, and any time you add a new managed service, enable a new feature, or expand to a new geography.


If you’re wrestling with a serverless design that must meet strict regulatory standards, let’s talk about how to embed compliance without slowing innovation. You can book a 30‑minute discovery call here: https://calendly.com/rohan-girdhani/discovery-call. For more insights on execution‑first AI and cloud governance, visit my homepage and blog archive.

CEO Advisory Home All Blog Posts Decision Authority Shifts First AI Use Case

In the market

Headlines this post is responding to — not invented stats.