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

Does AWS CDK provide constructs to deploy ECS applications using rolling deployments? #6605

Closed
shamhub opened this issue Mar 5, 2020 · 6 comments
Assignees
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container guidance Question that needs advice or information. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed.

Comments

@shamhub
Copy link

shamhub commented Mar 5, 2020

We generally use BlueGreen & Rolling deployment strategy to deploy/update docker containers in ECS container instances.


Ansible ECS modules allow implement such deployment strategies(rolling deployment) with below modules:

https://docs.ansible.com/ansible/latest/modules/ecs_taskdefinition_module.html

https://docs.ansible.com/ansible/latest/modules/ecs_task_module.html

https://docs.ansible.com/ansible/latest/modules/ecs_service_module.html


Does AWS CDK provide such constructs to deploy ECS applications?

@shamhub shamhub added the needs-triage This issue or PR still needs to be triaged. label Mar 5, 2020
@shamhub shamhub changed the title Does AWS CDK provide such constructs to deploy ECS applications? Does AWS CDK provide constructs to deploy ECS applications? Mar 5, 2020
@SomayaB SomayaB added guidance Question that needs advice or information. @aws-cdk/aws-ecs Related to Amazon Elastic Container labels Mar 6, 2020
@SoManyHs SoManyHs changed the title Does AWS CDK provide constructs to deploy ECS applications? Does AWS CDK provide constructs to deploy ECS applications using blue-green deployments? Mar 9, 2020
@hencrice hencrice removed the needs-triage This issue or PR still needs to be triaged. label Mar 18, 2020
@piradeepk piradeepk added the needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. label Mar 18, 2020
@hencrice
Copy link
Contributor

hencrice commented Mar 18, 2020

Hey @shamhub Native blue/green deployment requires support from the Cloudformation service side and we are actively working on it. You can find the tracking issue here.

@shamhub shamhub changed the title Does AWS CDK provide constructs to deploy ECS applications using blue-green deployments? Does AWS CDK provide constructs to deploy ECS applications using rolling deployments? Mar 18, 2020
@shamhub
Copy link
Author

shamhub commented Mar 20, 2020

Hey @shamhub so I suppose you would like to see both blue/green & rolling deployments? I will contact our product team regarding the second deployment strategy and get back to you.

Priority wise... I would like to see "Roling deployment" first and then "B/G deployment" next

@hencrice
Copy link
Contributor

hencrice commented Mar 20, 2020

For rolling update, I think this is what you want: https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ecs.DeploymentControllerType.html.

You can specify the deployment controller type when creating a service construct: https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ecs.Ec2Service.html

@shamhub hopefully that answers your question

@jcragg
Copy link

jcragg commented May 19, 2020

@hencrice now that support for ECS blue/green this has been added to CFN, can we expect to see this functionality available in CDK soon?

@MrArnoldPalmer
Copy link
Contributor

MrArnoldPalmer commented Jun 17, 2020

Hey there, we are working to implement this. Gonna close this in favor of #1559.

@shamhub
Copy link
Author

shamhub commented Jun 23, 2020

Check this NPM plugin which helps with blue-green deployment using CDK.

https://www.npmjs.com/package/@cloudcomponents/cdk-blue-green-container-deployment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs Related to Amazon Elastic Container guidance Question that needs advice or information. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed.
Projects
None yet
Development

No branches or pull requests

7 participants