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 Answers
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
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 9 months ago
0
profile pictureAWS
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions