I am triggering AWS CodePipeline with a PR commit through Bitbucket. Is there any way I can find which files were updated/created with the latest commit?
I looked into the Environment Variables and I looked into the pipeline's details and history CLI commands:
$ aws codepipeline list-pipeline-executions --pipeline-name <name>
and
$ aws codepipeline get-pipeline-state --name <name>
but they don't have the information I need.
Why do I need this? The pipeline triggers one or more Airflow DAGs and listens to their status. We include the DAG name(s) in the branch name, we parse it using CODEBUILD_WEBHOOK_HEAD_REF and we trigger the DAG(s). This is error-prone, and since the DAG names match their filename we would like to extract them automatically.
Is it something doable? Thanks for your help!