Clone the application code which will be deployed in EKS clusters.
cd .. git clone https://github.com/yjw113080/aws-cdk-multi-region-sample-app
Open the above project folder in your favorite IDE.
When you open the IDE, you can see that it contains three files except README.
If you open the app.py file, you can see a simple Python Flask application showing the region information of the environment where the container is running.
@app.route('/') def hello(): res = requests.get('http://169.254.169.254/latest/dynamic/instance-identity/document') data = json.loads(res.text) region = data['region'] return ("Hello World from "+region)