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 Respuestas
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
EXPERTO
respondido hace 9 meses
profile picture
EXPERTO
revisado hace 9 meses
0
profile pictureAWS
EXPERTO
respondido hace 9 meses
profile picture
EXPERTO
revisado hace 9 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas