How to deploy with Gitlab-Ci to EC2 using AWS Codecommit/CodeDeploy/CodePipeline

I have an app based in PHP 7.4 dockerized in gitlab and wanna push code in another repository of AWS with codecommit to deploy to EC2.