Issue #3217980 by Xiaohua Guan, yas: Fix errors while launching an EC2 instance from AWS Cloud Launch Template
Closes #3217980