Here I explained:
1. Basics of API , a sample python rest API
2. Terraform to create EC2 instance
3. Create Gitlab to deploy the app in to the EC2 instance
4. Docker file
Check Code Work and Miro board.
Gitlab: https://gitlab.com/akash-lab
Miro Board: https://miro.com/app/board/uXjVMy9G1_g=/