Updating AMI and CF template