@hiiretail/gcp-infra-generators 1.6.0 → 1.7.1
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/dist/generators/common-resources/spanner/templates/spanner/spec.hcl +21 -0
- package/dist/generators/common-resources/spanner/templates/spanner/terragrunt.hcl +1 -1
- package/dist/node_modules/.package-lock.json +1 -1
- package/dist/package.json +1 -1
- package/dist/src/SecretsGenerator.js +6 -1
- package/package.json +1 -1
|
@@ -9,8 +9,10 @@ locals {
|
|
|
9
9
|
|
|
10
10
|
# The edition decides which edition the spanner instance will have. Default is "STANDARD".
|
|
11
11
|
# The other options are "ENTERPRISE" and "ENTERPRISE_PLUS" which enable extra capabilities and additional cost
|
|
12
|
+
# If autoscaling is enabled, the edition must be at least ENTERPRISE
|
|
12
13
|
edition = "STANDARD"
|
|
13
14
|
|
|
15
|
+
# A unique display name for the instance in the GCP console.
|
|
14
16
|
display_name = "<%-displayName%>"
|
|
15
17
|
<% if (instanceAllocation == 'num_nodes') { %>
|
|
16
18
|
# The number of nodes allocated to this instance.
|
|
@@ -19,4 +21,23 @@ locals {
|
|
|
19
21
|
# The number of processing units allocated to this instance.
|
|
20
22
|
# At most one of either num_nodes or processing_units can be present in terraform.
|
|
21
23
|
processing_units = "<%-processingUnits%>" <% } %>
|
|
24
|
+
|
|
25
|
+
# Whether to enable autoscaling for the instance.
|
|
26
|
+
# Set to true if autoscaling is desired, false otherwise.
|
|
27
|
+
# Make sure to use a version of the terraform module that supports autoscaling.
|
|
28
|
+
# enable_autoscaling = false/true
|
|
29
|
+
|
|
30
|
+
# Autoscaling options for the instance.
|
|
31
|
+
# Only used if enable_autoscaling is true.
|
|
32
|
+
# Use min_nodes and max_nodes or min_processing_units and max_processing_units to define the autoscaling range.
|
|
33
|
+
#min_nodes = 1
|
|
34
|
+
#max_nodes = 3
|
|
35
|
+
#min_processing_units = 1000
|
|
36
|
+
#max_processing_units = 3000
|
|
37
|
+
|
|
38
|
+
# Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance.
|
|
39
|
+
#high_priority_cpu_utilization_percent = 65
|
|
40
|
+
|
|
41
|
+
# Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance.
|
|
42
|
+
#storage_utilization_percent = 70
|
|
22
43
|
}
|
|
@@ -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-spanner//?ref=v1.
|
|
4
|
+
source = "git::https://github.com/extenda/tf-module-gcp-spanner//?ref=v1.1.0"
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
# Include all settings from the root terragrunt.hcl file
|
|
@@ -11522,7 +11522,7 @@
|
|
|
11522
11522
|
},
|
|
11523
11523
|
"packages/generators": {
|
|
11524
11524
|
"name": "@hiiretail/gcp-infra-generators",
|
|
11525
|
-
"version": "1.
|
|
11525
|
+
"version": "1.7.1",
|
|
11526
11526
|
"license": "MIT",
|
|
11527
11527
|
"dependencies": {
|
|
11528
11528
|
"@google-cloud/storage": "^7.18.0",
|
package/dist/package.json
CHANGED
|
@@ -97,8 +97,13 @@ module.exports = class extends BaseGenerator {
|
|
|
97
97
|
|
|
98
98
|
buildSecrets() {
|
|
99
99
|
const secrets = [];
|
|
100
|
-
|
|
100
|
+
let resourceType =
|
|
101
101
|
this.instanceType === '' ? this.resource : this.instanceType;
|
|
102
|
+
|
|
103
|
+
// make secret management backwards compatible
|
|
104
|
+
if (this.instanceType === 'postgres-clan') {
|
|
105
|
+
resourceType = 'postgres';
|
|
106
|
+
}
|
|
102
107
|
const padding = resourceType.length + this.outputLen + this.stateLen + 2;
|
|
103
108
|
this.stateNames.secrets.forEach((secret) => {
|
|
104
109
|
const secretsSet = [];
|