@hiiretail/gcp-infra-cli 0.84.1 → 0.84.3
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.
|
@@ -26,11 +26,17 @@ module.exports = class extends BaseGenerator {
|
|
|
26
26
|
|
|
27
27
|
writing() {
|
|
28
28
|
const { date } = this.answers;
|
|
29
|
-
const
|
|
29
|
+
const filenameInternal = 'rca_internal';
|
|
30
|
+
const filenameExternal = 'rca_external';
|
|
30
31
|
|
|
31
32
|
this.fs.copyTpl(
|
|
32
|
-
this.templatePath('docs', '
|
|
33
|
-
this.destinationPath('docs', 'rca', `${
|
|
33
|
+
this.templatePath('docs', 'rca_internal.md'),
|
|
34
|
+
this.destinationPath('docs', 'rca', date, `${filenameInternal}.md`),
|
|
35
|
+
this.answers,
|
|
36
|
+
);
|
|
37
|
+
this.fs.copyTpl(
|
|
38
|
+
this.templatePath('docs', 'rca_external.md'),
|
|
39
|
+
this.destinationPath('docs', 'rca', date, `${filenameExternal}.md`),
|
|
34
40
|
this.answers,
|
|
35
41
|
);
|
|
36
42
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# RCA External - <%-description%> - <%-date%>
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
|
|
5
|
+
<!--
|
|
6
|
+
This section should be written last, when all of the other bullets in the RCA has been written. The purpose of this section is to have a section that can be
|
|
7
|
+
shared with external customers as well as internal stakeholders. Some guidelines and pointers:
|
|
8
|
+
|
|
9
|
+
* Think of it as the back cover of a book, a short but descriptive story
|
|
10
|
+
* The people who will read this will most likeley not have the technical know-how that we do, keep it simple
|
|
11
|
+
* Include what the problem was and how the customer(s) was affected
|
|
12
|
+
* Do NOT include any customer names
|
|
13
|
+
* Do NOT include any Hii Retail service names or underlying technologies that we are using
|
|
14
|
+
* Include some general action points, such as if additional alerts needs to be added. Skip the details
|
|
15
|
+
* Don't make promises, if there are any actions that we will look at, just mention them. Don't include target dates
|
|
16
|
+
|
|
17
|
+
Example:
|
|
18
|
+
On January 25 2023 from 14:31 CET to 15:59 CET some customers may have experienced delays with card payments. The issue was traced back to a misconfiguration of a recent deployment. At 15:31 CET a fix was deployed and monitored. At 15:59 CET the issue was resolved for all affected customers.
|
|
19
|
+
-->
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# RCA - <%-description%> - <%-date%>
|
|
1
|
+
# RCA Internal - <%-description%> - <%-date%>
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
4
|
|
|
@@ -16,6 +16,14 @@
|
|
|
16
16
|
|
|
17
17
|
**Services involved**: <!-- List the Hii Retail-service(s) that were involved in the incident, for example checkout-poslog -->
|
|
18
18
|
|
|
19
|
+
## Summary
|
|
20
|
+
|
|
21
|
+
<!--
|
|
22
|
+
This section should be written last, when all of the other bullets in the RCA has been written. The summary should include:
|
|
23
|
+
|
|
24
|
+
* What the problem statement was, what the root cause of it was and a short summary of the highest prioritized action points.
|
|
25
|
+
-->
|
|
26
|
+
|
|
19
27
|
## Sequence of Events
|
|
20
28
|
|
|
21
29
|
<!--
|
|
@@ -51,14 +59,6 @@ Problem: The vehicle won't start
|
|
|
51
59
|
4. __Why?__
|
|
52
60
|
5. __Why?__
|
|
53
61
|
|
|
54
|
-
## Summary
|
|
55
|
-
|
|
56
|
-
<!--
|
|
57
|
-
This section should be written last, when all of the other bullets in the RCA has been written. The summary should include:
|
|
58
|
-
|
|
59
|
-
* What the problem statement was, what the root cause of it was and a short summary of the highest prioritized action points.
|
|
60
|
-
-->
|
|
61
|
-
|
|
62
62
|
## Action items
|
|
63
63
|
|
|
64
64
|
<!--
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the
|
|
2
2
|
# working directory, into a temporary folder, and execute your Terraform commands in that folder.
|
|
3
3
|
terraform {
|
|
4
|
-
source = "git::https://github.com/extenda/tf-module-gcp-scheduler//?ref=
|
|
4
|
+
source = "git::https://github.com/extenda/tf-module-gcp-scheduler//?ref=v1.0.0"
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
# Include all settings from the root terragrunt.hcl file
|
|
@@ -23,22 +23,21 @@ locals {
|
|
|
23
23
|
# These are the variables we have to pass in to use the module specified in the terragrunt configuration above
|
|
24
24
|
inputs = merge(
|
|
25
25
|
local.project_vars.locals,
|
|
26
|
-
{
|
|
27
|
-
app_engine_region = "europe-west3"
|
|
28
|
-
region = "europe-west3"<% } %>
|
|
29
|
-
|
|
26
|
+
{
|
|
30
27
|
scheduled_jobs = [
|
|
31
28
|
{
|
|
32
|
-
name
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
name = "<%-name%>"
|
|
30
|
+
description = "<%-description%>"
|
|
31
|
+
schedule = "<%-schedule%>"
|
|
35
32
|
<% if (target == 'http') { %>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
http_target = {
|
|
34
|
+
uri = "<%-uri%>"
|
|
35
|
+
http_method = "<%-httpMethod%>"
|
|
36
|
+
} <% } else { %>
|
|
37
|
+
pubsub_target = {
|
|
38
|
+
topic_name = "projects/${local.project_vars.locals.project_id}/topics/${dependency.topic.outputs.topic}"
|
|
39
|
+
data = "${base64encode("<%-data%>")}"
|
|
40
|
+
}<% } %>
|
|
42
41
|
},
|
|
43
42
|
]
|
|
44
43
|
},
|