refresh ec2 credentials when it is expired