Fixed issues with deploying and AMI