@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.
@@ -2,17 +2,38 @@
2
2
 
3
3
  ## Google cloud operations costs
4
4
 
5
+ ### Assumptions
6
+
5
7
  <!--
6
- * Present calculations with enough details to understand cost drivers.
7
- * Presented a tiered table and show the cost for different volumes
8
- * Include the cost for data in the data mesh
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
- * Identity the high-level cost drivers suitable to base pricing on,
15
- for example number or stores, transactions, users, etc.
16
- * Explain high-level cost drivers and how they correlate to the operational
17
- cost drivers in GCP, for example GKE, databases, storage, traffic, etc.
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
  -->
@@ -1,5 +1,5 @@
1
1
  terraform {
2
- source = "git::https://github.com/extenda/tf-module-gcp-project//?ref=v1.0.2"
2
+ source = "git::https://github.com/extenda/tf-module-gcp-project//?ref=v1.0.6"
3
3
  }
4
4
 
5
5
  dependency "parent_folder" {
@@ -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
- type = "<%-action%>" <% if (action == 'SetStorageClass') { %>
34
- storage_class = "<%-storageClass%>" <% } else { %>
35
- storage_class = null <% } %>
36
- }
37
- condition = {
38
- age = <%-age%> <% if (createdBefore != 'null') { %>
39
- created_before = "<%-createdBefore%>" <% } else { %>
40
- created_before = null <% } %> <% if (withState != 'null') { %>
41
- with_state = "<%-withState%>" <% } else { %>
42
- with_state = null <% } %> <% if (matchesStorageClass != 'null') { %>
43
- matches_storage_class = "<%-matchesStorageClass%>" <% } else { %>
44
- matches_storage_class = null <% } %>
45
- num_newer_versions = <%-numNewerVersions%>
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
  }
@@ -1,5 +1,5 @@
1
1
  terraform {
2
- source = "git::https://github.com/extenda/tf-module-gcp-project//?ref=v0.9.8"
2
+ source = "git::https://github.com/extenda/tf-module-gcp-project//?ref=v1.0.6"
3
3
  }
4
4
 
5
5
  dependency "tribe_folder" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-cli",
3
- "version": "0.67.0",
3
+ "version": "0.67.3",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {