1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
Yes, CodeDeploy can work with Instance Refresh in an Auto Scaling Group (ASG).
To automate this process, you would need to configure CodeDeploy to use a deployment group that targets the instances in your ASG. You can specify deployment rules, deployment configurations, and the updated application version to deploy.
In your case, where you are creating the AMI with Packer and updating the launch template using Terraform, you would follow these steps:
- Use Packer to create a new AMI with the updated application version.
- Update the launch template in Terraform with the new AMI ID.
- Trigger an Instance Refresh in the ASG, which will replace the instances with new instances created from the updated AMI.
- Configure CodeDeploy to deploy the updated application version to the new instances in the ASG.
- CodeDeploy will recognize the newly launched instances and automatically initiate the deployment process.
Contenus pertinents
- Réponse acceptéedemandé il y a 6 mois
- demandé il y a 2 ans
- demandé il y a 2 ans
- demandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
Thanks for the reply, everything is correct and works fine!