use ami id and instance id for the hostname
using ami-id-hostname, creating copy
Merge pull request #1571 from edx/jarv/use-ami-and-inst

use ami id and using copy for config template