AWS Cloud Formation template fails with error