Set the instance type of win10 to t2.large from t2.medium because t2.medium is barely responsive with this setup.
map() is a deprecated function. Changed map() to tomap()