Blue green deployments

we are designing a game and are using AWS as the cloud provider. we have like 30 microservices for the game and we are using gitlab-ci to deploy it for the devops. i have written a gilab-ci file that triggers the pipeline for each repo and deploy the code in AWS. Is there any way we can roll back all the lambda’s we deploy if any one of the build fails?