When I am trying deploy application code using aws codepipeline getting script failed error on the instance launched using autoscale group.Previously when I used only one instance it gave success.But now I added this asg instance for the deployment one at a time,

I have only aws cli version ie.latest 2.