I've tried to configure auto deployment from github to aws codedeploy. I found some useful tutorials (like https://blogs.aws.amazon.com/application-management/post/Tx33XKAKURCCW83/Automatically-Deploy-from-GitHub-Using-AWS-CodeDeploy) and it works.
I have two problems: 1. I would like to trigger AWS CodeDeploy only if I add/change files in root folder and not in subfolders (or in certain subfolder). Reason: I use my repo to store ML tasks, each ML model is stored in a separate script in root (or in 'models' ). When I update other files, I don't want to start deployment. 2. I would like to start 1 AWS instance for each changed model, i.e. for each file in root folder (or model subfolder).
Any ideas, suggestions?