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

fix(ecs): Removing explicit mention of ECS DeploymentController for CircuitBreaker #16646

Closed
wants to merge 10 commits into from

Conversation

kenilshah27
Copy link


ECS service update with circuitbreaker via CDK was not as expected for the customer. The field DeploymentController is set to ECS when it is passed as null during creation. Now when we try to update the DeploymentCircuitBreaker field on the resource the value of ECS for DeploymentController is passed explicity. So technically this does not change anything on the service side except explicitly passing the value. But this is causing a new resource to be created via CFN as the field is createOnly. This leads to a new deploymment in ECS which should not happen as nothing is changing. This can cause issues for the customer side if they dont have enough instances to support new update causing failures and eventually failed updates via CDK.

Looking at the CDK implementation it seems like whenever the customer is creating/updating a service with CircuitBreaker the DeploymentConfiguration is explicitly set to ECS. This should not be the case because CircuitBreaker is independent of the DeploymentController and the validation for not supporting CircuitBreaker for any other DeploymentController is done on the backend. So this kind of explicit passing on value is not required in CDK.

@gitpod-io
Copy link

gitpod-io bot commented Sep 24, 2021

@mergify
Copy link
Contributor

mergify bot commented Sep 24, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

@kenilshah27 kenilshah27 changed the title Removing explicit mention of ECS DeploymentController for CircuitBreaker [fix] Removing explicit mention of ECS DeploymentController for CircuitBreaker Sep 24, 2021
@kenilshah27 kenilshah27 changed the title [fix] Removing explicit mention of ECS DeploymentController for CircuitBreaker fix(ecs): Removing explicit mention of ECS DeploymentController for CircuitBreaker Sep 24, 2021
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 291c5d1
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@peterwoodworth peterwoodworth changed the title fix(ecs): Removing explicit mention of ECS DeploymentController for CircuitBreaker fix(ecs): Removing explicit mention of ECS DeploymentController for CircuitBreaker Oct 21, 2021
@github-actions github-actions bot added the @aws-cdk/aws-ecs Related to Amazon Elastic Container label Oct 21, 2021
@enomotodev
Copy link

@madeline-k I'm waiting for this PR to be merged ...

@madeline-k
Copy link
Contributor

Closing this PR as a duplicate of #16919. @enomotodev, I will review that one and focus on getting it merged instead of this one.

1 similar comment
@madeline-k
Copy link
Contributor

Closing this PR as a duplicate of #16919. @enomotodev, I will review that one and focus on getting it merged instead of this one.

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
Projects
None yet
4 participants