CI/CD for creating AMI(s)

0

Hi AWS, I want to know if it is possible to create a new AMI with only the newest updates rather than stopping the EC2 instance and creating it a new altogether by downloading the existing binaries or applications along with the newest changes. Also is it possible to version tag them so that instead of overwriting them I would maintain an inventory to compare the changes between the latest and the n-1 AMI.

Is AWS Elastic Beanstalk providing that flexibility to accomplish the same? In case yes, how can we do that. Please guide.

profile picture
Arjun
已提問 8 個月前檢視次數 213 次
2 個答案
0

Hi,

the AWS Image Builder is the tool that you want to use for your purpose: https://aws.amazon.com/image-builder/

EC2 Image Builder simplifies the building, testing, and deployment of Virtual Machine 
and container images for use on AWS or on-premises.

Keeping Virtual Machine and container images up-to-date can be time consuming, 
resource intensive, and error-prone. Currently, customers either manually update and
 snapshot VMs or have teams that build automation scripts to maintain images.

Image Builder significantly reduces the effort of keeping images up-to-date and secure
 by providing a simple graphical interface, built-in automation, and AWS-provided security 
settings. With Image Builder, there are no manual steps for updating an image nor do you 
have to build your own automation pipeline.

To automate, you have CloudFormation samples at https://github.com/aws-samples/amazon-ec2-image-builder-samples/tree/master/CloudFormation

This blog post explains the integration with BeansTalk (Windows use case but mostly applicable to Linux): https://aws.amazon.com/blogs/devops/ec2-image-builder-for-windows-on-aws-elastic-beanstalk/

Best,

Didier

profile pictureAWS
專家
已回答 8 個月前
profile picture
專家
已審閱 8 個月前
profile pictureAWS
專家
已審閱 8 個月前
0

Hi

You can use amazon builder service to buid the new ami for all Distruibutions with new updates.

已回答 8 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南