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.

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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则