Terminate instance after creating ami, get absolute path for ami config