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?

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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠