Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to route traffic for different application in same environment of apigee

Team,

I have two APIGEE Orgs as below, I want to migrate app1 from Org1 to Org2 with a smooth transition. I have CNAME registered in AWS to transfer traffic between below two Orgs with weighted routing. Could someone suggest me on how to route the traffic from "app1.dev.org.com" to "dev.nip.io/app1" in apigee?

AWS
       CNAME - app1.dev.org.com, app2.dev.org.com, app3.dev.org.com

APIGEE Org1
      dev.nip.io
            app1 - dev.nip.io/app1
            app2 - dev.nip.io/app2
            app3 - dev.nip.io/app3

APIGEE Org2
      dev-new.nip.io
            app1 - dev-new.nip.io/app1
            app2 - dev-new.nip.io/app2
            app3 - dev-new.nip.io/app3

Solved Solved
1 3 492
1 ACCEPTED SOLUTION

I am able to achieve this ask by adding Routing rules of Load Balancer as below.

 
defaultService: backendService: global/backendServices/BACKEND_SERVICE_1
nameapp1-dev-rule
routeRules:
matchRules:
prefixMatch/
priority0
routeAction:
weightedBackendServices:
backendService: global/backendServices/BACKEND_SERVICE_1
weight100
urlRewrite:
pathPrefixRewrite/app1
hostRewrite: dev.nip.io

View solution in original post

3 REPLIES 3