I am using AWS Elastic Beanstalk and have deployed my nodejs app on it. Now I want to automate this proces i.e commiting changes to Github and then automatically reflecting those changes in app. Now I have two options, use whether Elastic Beanstlak or using Code Deploy. I have searched on both services,
I can automate using deployBot with elastic beanstalk or using jenkins plugin for automation (AWS Elastic Beanstalk Deployment Plugin) for elastic beanstalk. Also found this link to automate: https://aws.amazon.com/blogs/devops/building-continuous-deployment-on-aws-with-aws-codepipeline-jenkins-and-aws-elastic-beanstalk/
I can also use AWS CodeDeploy service for automation to deploy my app on EC2 instances using CodeCommit , code pipeline. In case of code deploy I can also do by using this: https://aws.amazon.com/blogs/devops/automatically-deploy-from-github-using-aws-codedeploy/
Now both services can be used , but which one is more suitable to use. That will automate my process whether using AWS Elastic Beanstalk or AWS Code Deploy.