commit before taking AMI