Added support for resource_tpl in EC2 backend