Skip to content

(aws-cloudwatch-actions): Add the possibility to have SSM Incident Action#20553

Closed
dosatos wants to merge 1 commit intoaws:mainfrom
dosatos:master
Closed

(aws-cloudwatch-actions): Add the possibility to have SSM Incident Action#20553
dosatos wants to merge 1 commit intoaws:mainfrom
dosatos:master

Conversation

@dosatos
Copy link
Copy Markdown

@dosatos dosatos commented May 31, 2022

This small PR will add SSM Incident action to cloudwatch alarm.
The arn format was taken from the UI console (under Incident Manager Response Plan)

closes #20552

Used #16923 as a reference

…tion

This small PR will add SSM Incident action to cloudwatch alarm.
The arn format was taken from the UI console (under Incident Manager Response Plan)
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented May 31, 2022

@github-actions github-actions bot added feature-request A feature should be added or improved. p2 labels May 31, 2022
@aws-cdk-automation aws-cdk-automation requested a review from a team May 31, 2022 12:06
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

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

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

@TheRealAmazonKendra TheRealAmazonKendra changed the base branch from v1-main to main June 2, 2022 09:02
Copy link
Copy Markdown
Contributor

@comcalvi comcalvi left a comment

Choose a reason for hiding this comment

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

Just a few minor comments on this one.

export * from './sns';
export * from './ec2';
export * from './ssm';
export * from './ssm-incidents'; No newline at end of file
Copy link
Copy Markdown
Contributor

@comcalvi comcalvi Jun 16, 2022

Choose a reason for hiding this comment

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

Suggested change
export * from './ssm-incidents';
export * from './ssm-incidents';

// Create an Incident Manager incident based on a specific response plan
alarm.addAlarmAction(
new actions.SsmIncidentAction(
'arn:aws:ssm-incidents::123456789012:response-plan/ResponsePlanName'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
'arn:aws:ssm-incidents::123456789012:response-plan/ResponsePlanName'
'arn:aws:ssm-incidents::123456789012:response-plan/ResponsePlanName',

@@ -0,0 +1,20 @@
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
Copy link
Copy Markdown
Contributor

@comcalvi comcalvi Jun 16, 2022

Choose a reason for hiding this comment

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

This logic should be moved into ssm.ts.

Comment on lines +8 to +9
constructor(private readonly responsePlanArn: string) {
}
Copy link
Copy Markdown
Contributor

@comcalvi comcalvi Jun 16, 2022

Choose a reason for hiding this comment

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

Suggested change
constructor(private readonly responsePlanArn: string) {
}
constructor(private readonly responsePlanArn: string) { }

@TheRealAmazonKendra
Copy link
Copy Markdown
Contributor

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.

callumthomson added a commit to callumthomson/aws-cdk that referenced this pull request Jul 15, 2022
Finishes work originally contributed by @dosatos by addressing changes requested by @comcalvi in aws#20553
closes aws#20552
@dosatos
Copy link
Copy Markdown
Author

dosatos commented Jul 19, 2022

Sorry, I have been on a month long vacation and could not check-in earlier.
From what I see, this efforts has been carried over in this work: #21167

mergify bot pushed a commit that referenced this pull request Aug 10, 2022
Finishes work originally contributed by @dosatos by addressing changes requested by @comcalvi in [#20553](#20553)

closes [#20552](#20552)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(aws-cloudwatch-actions): Add the possibility to have SSM Incident Action

5 participants