# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 import socket import os import requests from flask import Flask app = Flask(__name__) @app.route('/') def home(): print("inside method home of Domain-1-Service-A-Cell-1.internal-Domain1.com This is cell 1") response1 = requests.get("http://Domain1-ServiceB-Cell1.internal-Domain1.com:5001/") return "Domain-1-Service-A-Cell1

You have hit Domain-1-Service-A-Cell-1 from node %s

The below content is fetched from Service B





%s



" % ( socket.gethostname() , response1.content) #return "Domain-1-Service-A-Cell-1

You have hit Domain-1-Service-A-Cell-1 from node %s

" % ( socket.gethostname() ) if __name__ == "__main__": app.run(host="0.0.0.0", debug=True)