ami can be read from env