2
votes

I just have setup autoscale, elastic loadbalancer and codedeploy.

When i ship new source through codedeploy every running ec2 instance is updated with new source as per my requirement.

But whenever new ec2 launch it is using old AMI.

How can i figure out this issue?

I have to create every time new AMI when i ship code?

1
i have same issue, what have you done to achieve this?Noman

1 Answers

0
votes

AWS CodeDeploy can be integrated with your Auto Scaling group as documented here.

When new Amazon EC2 instances are launched as part of an Auto Scaling group, AWS CodeDeploy can deploy your revisions to the new instances automatically.