Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I ensure sequential execution of deployment in deployment configuration? #335

Closed
Ruchira-R opened this issue Oct 7, 2022 · 1 comment

Comments

@Ruchira-R
Copy link

I don't see any option to configure - I want to execute in machine 1, mahcine 2 and then on machine 3. How do I specify the order?

@mwjones-aws
Copy link
Contributor

mwjones-aws commented Oct 11, 2022

CodeDeploy has no mechanism to enforce the order in which the instances in a deployment group receive deployments. CodeDeploy deployment groups support a deployment configuration called CodeDeployDefault.OneAtATime which will deploy to only 1 host at a time. However, this configuration makes no guarantees about the order in which hosts receive deployments. More information about CodeDeploy deployment configurations can be found here.

Here are two ways you might do an order-aware deployment:

  1. SSM SendCommand API. This approach does not involve CodeDeploy at all
  2. One CodeDeploy DeploymentGroup per host

Bear in mind that CodeDeploy cannot orchestrate either of these approaches for you. You will need to write code, like a Lambda function, to perform the individual deployments.

edited to fix markdown

@mwjones-aws mwjones-aws closed this as not planned Won't fix, can't repro, duplicate, stale Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants