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 Respostas
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
ESPECIALISTA
respondido há 9 meses
profile picture
ESPECIALISTA
avaliado há 9 meses
0
profile pictureAWS
ESPECIALISTA
respondido há 9 meses
profile picture
ESPECIALISTA
avaliado há 9 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas