CI/CD pipeline for creating a new AWS AMI

0

Hi AWS, I have a query i.e. if you have an EC2 instance and you have some 10 applications running on it. I want to take the snapshot of this instance but moving forward if I have another 15 applications running I want a new snapshot will be created with all 25 applications/software. Having said that I want every snapshot to be stored with proper naming convention and tagging and it furthers create the AMI. So, in case the instance goes down it will be replaced with the latest AMI and I want this all to be done with zero downtime.

Now, on top of this for instance I am doing this manually which is very time consuming and error prone. So I want to introduce a CI/CD way to do this on epoch basis after every one week or so just to monitor the current state and meet it to the desired state.

I want to know whether this is really feasible or not practically and if so which all tools we can look for including AWS agnostic and third party tools like Jenkins and GitHub?

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

Hi.

You can use automation and EC2 Image Builder to accomplish this. This is a blog post / tutorial using CodePipeline.

You should be able to copy the steps to whatever CI/CD you are using. Hope it helps.

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

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

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

回答問題指南