Skip to content

feat(ecs): Alarm-based Rollbacks adding new datastructure,Constructor, enableDeploymentAlarms and MetricDeploymentAlarms#24182

Closed
homakk wants to merge 28 commits intoaws:mainfrom
homakk:alarambasedrollback
Closed

feat(ecs): Alarm-based Rollbacks adding new datastructure,Constructor, enableDeploymentAlarms and MetricDeploymentAlarms#24182
homakk wants to merge 28 commits intoaws:mainfrom
homakk:alarambasedrollback

Conversation

@homakk
Copy link
Copy Markdown
Contributor

@homakk homakk commented Feb 15, 2023

Adding a new interface, deploymentAlarmConfig, to allow customers to use existing alarms when the services are constructed.
Enable Deployment Alarms which take advantage of arbitrary alarms and configure them after service initialization.
Add an alarm based on ECS metric which appended to the list of deployment alarms at synthesis time

  • Customize the alarm threshold and evaluationPeriods using 2nd argument ecsMetricAlarmProps.
  • threshold value 85
  • evaluationPeriods value 3

Reference documentation : https://aws.amazon.com/blogs/containers/automate-rollbacks-for-amazon-ecs-rolling-deployments-with-cloudwatch-alarms/

image

Describe the reason for this change, what the solution is, and any
important design decisions you made.

Remember to follow the CONTRIBUTING GUIDE and DESIGN GUIDELINES for any
code you submit.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Feb 15, 2023

@aws-cdk-automation aws-cdk-automation requested a review from a team February 15, 2023 14:43
@github-actions github-actions bot added p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Feb 15, 2023
@homakk homakk force-pushed the alarambasedrollback branch from 499ac18 to 4a87429 Compare February 15, 2023 19:01
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@aws-cdk-automation aws-cdk-automation dismissed their stale review February 15, 2023 19:59

✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.

@homakk homakk requested a review from bvtujo February 16, 2023 17:57
@homakk homakk requested review from pallymore and removed request for bvtujo February 17, 2023 20:08
@pallymore
Copy link
Copy Markdown
Member

thanks for addressing the review comments 😬 let's make sure the codebuild check passes

Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@aws-cdk-automation aws-cdk-automation dismissed their stale review February 21, 2023 19:39

✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.

@homakk homakk requested a review from bvtujo February 21, 2023 19:40
Copy link
Copy Markdown
Contributor

@bvtujo bvtujo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. My only remaining comment is that we should probably not merge this into main yet, but instead use this branch as a feature branch. You should base your next PRs on this branch so that we can merge all the changes for alarm based rollbacks into main in one fell swoop and we don't run the risk of partially releasing this feature.

@homakk homakk requested a review from bvtujo February 21, 2023 22:34
@homakk homakk requested a review from bvtujo February 22, 2023 16:52
@homakk homakk requested a review from bvtujo February 22, 2023 17:43
@homakk homakk changed the title feat(ecs): Alarm-based Rollbacks adding new datastructure,Constructor and Unit Tests for constructor logic feat(ecs): Alarm-based Rollbacks adding new datastructure,Constructor, enableDeploymentAlarms and MetricDeploymentAlarms Mar 7, 2023
@madeline-k madeline-k self-assigned this Apr 11, 2023
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week.

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: e3e7772
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

This PR has been deemed to be abandoned, and will be automatically closed. Please create a new PR for these changes if you think this decision has been made in error.

@aws-cdk-automation aws-cdk-automation added the closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. label Apr 27, 2023
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Apr 27, 2023

⚠️ The sha of the head commit of this PR conflicts with #25346. Mergify cannot evaluate rules on this PR. ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants