Gitlab runner connecting to old ec2 instance

I spun up a ec2 instance from old backup image of the instance. This instance already has the runner that I use to deploy my CI/CD pipeline. I recently had used the same runner to connect to new EC2 instance and now I have removed that instance. But my gitlab runner is still trying to connect to connect to old EC2 instance IP address. How to connect the gitlab runner to new EC2 instance?