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