update AMI
separate config & code & ui