@hiiretail/gcp-infra-cli 0.69.1 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const chalk = require('chalk');
|
|
3
|
+
const BaseGenerator = require('../../../src/BaseGenerator');
|
|
4
|
+
const { required } = require('../../../src/validators');
|
|
5
|
+
|
|
6
|
+
module.exports = class extends BaseGenerator {
|
|
7
|
+
prompting() {
|
|
8
|
+
const prompts = [
|
|
9
|
+
{
|
|
10
|
+
type: 'input',
|
|
11
|
+
name: 'system',
|
|
12
|
+
message: 'Name of the software system',
|
|
13
|
+
validate: required,
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
return this.prompt(prompts).then((props) => {
|
|
18
|
+
this.answers = props;
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
writing() {
|
|
23
|
+
const { system } = this.answers;
|
|
24
|
+
const filename = this.kebabCase(system.toLowerCase());
|
|
25
|
+
|
|
26
|
+
this.copyDir(
|
|
27
|
+
'docs',
|
|
28
|
+
this.destinationPath(path.join('docs', filename)),
|
|
29
|
+
{
|
|
30
|
+
...this.answers,
|
|
31
|
+
c4System: system.replace(/\s/g, ''),
|
|
32
|
+
},
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
end() {
|
|
37
|
+
this.log(`
|
|
38
|
+
${chalk.green('Your Runbook documentation template have now been created.')}
|
|
39
|
+
Next, push this change in a feature branch and open a pull request.
|
|
40
|
+
`);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Runbook for <%-system%>
|
|
2
|
+
|
|
3
|
+
## General
|
|
4
|
+
|
|
5
|
+
Describe in short what the purpose of the solution is.
|
|
6
|
+
|
|
7
|
+
## Architecture
|
|
8
|
+
|
|
9
|
+
Include C4 diagrams or links to the Software Guidebook.
|
|
10
|
+
|
|
11
|
+
## Business Continuity and Disaster Recovery Plan
|
|
12
|
+
|
|
13
|
+
Link to the Business Continuity and Disaster Recovery Plan documentation.
|
|
14
|
+
|
|
15
|
+
## Services
|
|
16
|
+
|
|
17
|
+
A short description of what the purpose of each service is. Links to the log files of all the services that are included in the solution.
|
|
18
|
+
|
|
19
|
+
## Dashboard
|
|
20
|
+
|
|
21
|
+
Links to one or multiple dashboards.
|
|
22
|
+
|
|
23
|
+
## Service Level Objectives
|
|
24
|
+
|
|
25
|
+
What are the SLOs?
|
|
26
|
+
|
|
27
|
+
## Alerts
|
|
28
|
+
|
|
29
|
+
What are the alerts that has been setup, where is alert sent to and what are the steps to mitigate the issue?
|
|
30
|
+
|
|
31
|
+
## Health Checks
|
|
32
|
+
|
|
33
|
+
Links to the configured uptime checks that has been setup in GCP.
|
|
34
|
+
|
|
35
|
+
## How do I..?
|
|
36
|
+
|
|
37
|
+
Good to know things. Such as `How do I check the price for a specific item?`
|
|
38
|
+
|
|
39
|
+
## Known Issues
|
|
40
|
+
|
|
41
|
+
Are there any known issues? If yes, what is the workaround to solve them?
|
|
42
|
+
|
|
43
|
+
## Contact & Escalation Matrix
|
|
44
|
+
|
|
45
|
+
If the team is unable to resolve the issue, who is the first in line to contact?
|
|
46
|
+
|
|
47
|
+
| # | Name | Role | E-Mail | Phone number |
|
|
48
|
+
| --- | --- | --- | --- | --- |
|
|
49
|
+
| 1 | Mr X | My Role | mr.x@x.com | 1234567 |
|
|
50
|
+
| 2 | Mr Y | My Role | mr.y@y.com | 7654321 |
|