@hiiretail/gcp-infra-cli 0.67.0 → 0.67.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.
- package/generators/docs/srb/templates/docs/cost-estimates.md +28 -7
- package/generators/organization/clan-project/templates/clan-project/terragrunt.hcl +1 -1
- package/generators/resources/cloud-storage/templates/cloud-storage/spec.hcl +17 -19
- package/generators/tribe-resources/tribe-project/templates/project/terragrunt.hcl +1 -1
- package/package.json +1 -1
|
@@ -2,17 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
## Google cloud operations costs
|
|
4
4
|
|
|
5
|
+
### Assumptions
|
|
6
|
+
|
|
5
7
|
<!--
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
Explain what assumption you've made as part of your price estimates.
|
|
9
|
+
For example, number of messages per second, size of stored data,
|
|
10
|
+
number of connected clients etc.
|
|
11
|
+
-->
|
|
12
|
+
|
|
13
|
+
### Calculations
|
|
14
|
+
|
|
15
|
+
<!--
|
|
16
|
+
Share a link to the Google Price Calculator with your calculations.
|
|
17
|
+
|
|
18
|
+
* Include all components used in your C4 diagrams
|
|
19
|
+
* Present calculations with enough details to understand cost drivers.
|
|
20
|
+
* Presented a tiered table and show the cost for different volumes
|
|
21
|
+
* Include the cost for data in the data mesh
|
|
22
|
+
|
|
23
|
+
Google Price Calculator hints
|
|
24
|
+
|
|
25
|
+
* Use "GKE Node Pool" to calculate cost of Cloud Run for Anthos
|
|
26
|
+
* Always calculate with high availability for Cloud SQL
|
|
27
|
+
* Only include network egress if your system is egress-heavy. It should
|
|
28
|
+
for example be included in external events, but not for scan & go
|
|
9
29
|
-->
|
|
10
30
|
|
|
11
31
|
## High-level cost drivers
|
|
12
32
|
|
|
13
33
|
<!--
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
34
|
+
How would you sell this service to customers? What is the billable metrics of
|
|
35
|
+
this service? There's two types of metrics we want to capture
|
|
36
|
+
|
|
37
|
+
* Seat based - for example number of clients or users
|
|
38
|
+
* Usage based - for example number of price updates per month
|
|
18
39
|
-->
|
|
@@ -27,23 +27,21 @@ locals {
|
|
|
27
27
|
set_viewer_roles = true
|
|
28
28
|
|
|
29
29
|
<% if (lifecycleRules == 'true') { %>
|
|
30
|
-
lifecycle_rules = [
|
|
31
|
-
{
|
|
32
|
-
action
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} <% } %>
|
|
48
|
-
]
|
|
30
|
+
lifecycle_rules = [{
|
|
31
|
+
action = {
|
|
32
|
+
type = "<%-action%>" <% if (action == 'SetStorageClass') { %>
|
|
33
|
+
storage_class = "<%-storageClass%>" <% } else { %>
|
|
34
|
+
storage_class = null <% } %>
|
|
35
|
+
}
|
|
36
|
+
condition = {
|
|
37
|
+
age = <%-age%> <% if (createdBefore != 'null') { %>
|
|
38
|
+
created_before = "<%-createdBefore%>" <% } else { %>
|
|
39
|
+
created_before = null <% } %> <% if (withState != 'null') { %>
|
|
40
|
+
with_state = "<%-withState%>" <% } else { %>
|
|
41
|
+
with_state = null <% } %> <% if (matchesStorageClass != 'null') { %>
|
|
42
|
+
matches_storage_class = "<%-matchesStorageClass%>" <% } else { %>
|
|
43
|
+
matches_storage_class = null <% } %>
|
|
44
|
+
num_newer_versions = <%-numNewerVersions%>
|
|
45
|
+
}
|
|
46
|
+
}] <% } %>
|
|
49
47
|
}
|