Reputation: 2294
I've been working on a cloud formation template for my environment. I end up with a
But I incurred problem with CodeDeploy configuration with Cloud Formation, as not all features are possible for EC2 instances. After configuring manually CodeDeploy, I get an error while deploying such as "too few unhealthy instances" after which created instances are not destroyed even if rollback is enabled. I'm using right now only one EC2 instance for application, but planning in future to scale.
Is there an alternative for CodeDeploy? I'm interested to trigger deploy from Jenkins Machine.
Upvotes: 0
Views: 1468
Reputation: 11
Ensure that you have assigned the correct IAM role for the EC2 instance by going to the "Instance Settings". This will ensure that your deployment occurs smoothly without throwing that error.
You can also configure the deployment to EC2 using CodeDeploy through jenkins.
Steps to follow:
AWS CodeDeploy:
Jenkins:
Upvotes: 1
Reputation: 13837
For above your requirements, I strongly suggest that using aws elastic beanstalk
is better way to deploy codes to aws. Because we could manage those in elastic beanstalk
and for code deployment, use codeship
is also better way to mange deployment integrated with github
instead of aws code deployment.
Upvotes: 1