Number of pipelines recommended in CodePipeline

0

Hi,

I'm using TeamCity to deploy on ECS and considering moving to CodePipeline. I'm wondering if I should have just one or two pipelines. Here is my current scenario.

Pipeline 1 This pipeline is meant to build the Docker image and push to ECR.

Pipeline 2 This pipeline is meant to deploy the new docker image creating a new task definition and making the deployment.

To me both approaches look fine. The only advantage that I can see having two pipelines is that you could make a deployment running a pipeline instead of using any other tool like CFN.

Any other differences I'm missing?

Thanks

AWS
gefragt vor 4 Jahren233 Aufrufe
1 Antwort
0
Akzeptierte Antwort

We typically recommend one pipeline per service or shared component, for ECS that means that unless you're building and image that is used by multiple TaskDefinitions, I'd recommend build and deploy in the same pipeline, there's simply no advantage in splitting that pipeline in two, even if you want to control when to deploy the image you can disable the transition or add a manual approval step.

The less resources you own the less your ops costs.

But I also need to say that if you want to use two pipelines for some other reason (maybe finer permission control), it should work equally well.

beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen