Skip to content

ResponsePlan

Source: src/AWS/SSMIncidents/ResponsePlan.ts

An Incident Manager response plan — the template that automates the initial response to incidents by engaging contacts, starting chat-channel collaboration, and running Automation runbooks.

Requires the account’s Incident Manager replication set (SSMIncidents.ReplicationSet) to exist.

Minimal response plan

const replicationSet = yield* SSMIncidents.ReplicationSet("Incidents", {});
const plan = yield* SSMIncidents.ResponsePlan("Critical", {
incidentTemplate: { title: "Critical failure", impact: 1 },
});

Response plan with engagements and chat channel

const plan = yield* SSMIncidents.ResponsePlan("Sev1", {
displayName: "Severity 1 response",
incidentTemplate: {
title: "Sev1 incident",
impact: 1,
summary: "Automated Sev1 response",
notificationTargets: [{ snsTopicArn: topic.topicArn }],
},
engagements: [oncall.contactArn],
chatChannel: { chatbotSns: [topic.topicArn] },
});