# Cross-account canary routing with Amazon VPC Lattice and Amazon API Gateway

DevFeed: [Cross-account canary routing with Amazon VPC Lattice and Amazon API Gateway](<https://devfeed.tech/articles/cross-account-canary-routing-with-amazon-vpc-lattice-and-amazon-api-gateway-67031.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/networking-and-content-delivery/cross-account-canary-routing-with-amazon-vpc-lattice-and-amazon-api-gateway/>)

Author: Mahmoud Ismail

Published: 2026-10-07T19:16:35Z

Content type: tutorial

Language: en

Sources: [Networking & Content Delivery](<https://devfeed.tech/sources/networking-content-delivery.md>)

Topics: [Amazon API Gateway](<https://devfeed.tech/topics/amazon-api-gateway.md>), [VPC Flow Logs](<https://devfeed.tech/topics/vpc-flow-logs.md>), [blue-green deployment](<https://devfeed.tech/topics/blue-green-deployment.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>)

Tags: [amazon-api-gateway](<https://devfeed.tech/tags/amazon-api-gateway.md>), [amazon-vpc](<https://devfeed.tech/tags/amazon-vpc.md>), [amazon-vpc-lattice](<https://devfeed.tech/tags/amazon-vpc-lattice.md>), [canary](<https://devfeed.tech/tags/canary.md>), [canary-deployment](<https://devfeed.tech/tags/canary-deployment.md>), [networking-content-delivery](<https://devfeed.tech/tags/networking-content-delivery.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

## AI overview

The article describes a cross-account canary-routing pattern for gradually moving traffic from a monolith to microservices. Amazon API Gateway makes the per-request canary decision, while Amazon VPC Lattice provides cross-account service connectivity. A VPC-attached Lambda function forwards requests to the selected service, and separate APIs can provide independent canary settings for each extracted service.

## Source excerpt

Modernizing a monolith into microservices may require placing each new service in its own AWS account for isolation, independent scaling, and clear ownership. During that migration you hit a hard question: how do you shift a small, precise slice of live traffic from the monolith to a new service in a different account? You need [...]