Configure two CodeBuild projects (frontend and backend) and a trigger from GitLab Release events that starts CodePipeline. CodePipeline invokes CodeBuild using the repository’s existing frontend-buildspec.yml and backend-buildspec.yml, and then deploys to ECS.
frontend-buildspec.ymlbackend-buildspec.yml



You now have two CodeBuild projects (frontend and backend) ready to be invoked by CodePipeline. A GitLab Release event can trigger CodePipeline, which then runs each project with its corresponding frontend-buildspec.yml and backend-buildspec.yml. In subsequent steps, CodePipeline will take the build artifacts and deploy to ECS.