@hiiretail/gcp-infra-cli 0.91.3 → 0.91.5

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.
@@ -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/terraform-google-modules/terraform-google-kms//?ref=v1.2.0"
4
+ source = "git::https://github.com/terraform-google-modules/terraform-google-kms//?ref=v2.2.2"
5
5
  }
6
6
 
7
7
  # Include all settings from the root terragrunt.hcl file
@@ -16,25 +16,27 @@ module.exports = class extends BaseGenerator {
16
16
  default: 'database',
17
17
  choices: ['instance', 'database'],
18
18
  },
19
+ {
20
+ when: (response) => response.resourceType === 'instance',
21
+ type: 'list',
22
+ name: 'regionalInstance',
23
+ message: 'Both staging and prod will get configuration for regional instance. If multi regional is needed contact platform team',
24
+ default: 'proceed',
25
+ choices: ['proceed'],
26
+ },
19
27
  {
20
28
  when: (response) => response.resourceType === 'instance',
21
29
  type: 'input',
22
30
  name: 'instanceName',
23
31
  message: 'Please provide a name for the instance',
24
- validate: (input) => {
25
- const validation = validName(input);
26
- return validation.valid ? true : validation.message;
27
- },
32
+ validate: validName,
28
33
  },
29
34
  {
30
35
  when: (response) => response.resourceType === 'instance',
31
36
  type: 'input',
32
37
  name: 'displayName',
33
38
  message: 'Please provide the descriptive name for this instance. Unique per project.',
34
- validate: (input) => {
35
- const validation = validName(input);
36
- return validation.valid ? true : validation.message;
37
- },
39
+ validate: validName,
38
40
  },
39
41
  {
40
42
  when: (response) => response.resourceType === 'instance',
@@ -5,9 +5,7 @@ locals {
5
5
 
6
6
  # The name of the instance's configuration which defines the geographic placement and replication of your databases in this instance.
7
7
  # It determines where your data is stored.
8
- <% if (env == 'staging') { %>
9
- instance_config = "regional-europe-west1" <% } else { %>
10
- instance_config = "eur3" <% } %>
8
+ instance_config = "regional-europe-west1"
11
9
 
12
10
  display_name = "<%-displayName%>"
13
11
  <% if (instanceAllocation == 'num_nodes') { %>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-cli",
3
- "version": "0.91.3",
3
+ "version": "0.91.5",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {