@hiiretail/gcp-infra-cli 0.91.2 → 0.91.4

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,9 +26,9 @@ locals {
26
26
  inputs = merge(
27
27
  local.spec_vars.locals,
28
28
  {
29
- name = "memorystore-${local.service_name}-${local.project_vars.locals.project_env}"
29
+ name = "memorystore-${local.service_name}-${local.project_vars.locals.project_env}-clan"
30
30
  project = local.project_vars.locals.project_id
31
- authorized_network = "projects/${local.project_vars.locals.tribe_project_id}/global/networks/${local.project_vars.locals.network}"
31
+ authorized_network = "projects/${local.project_vars.locals.project_id}/global/networks/${local.project_vars.locals.clan_network}"
32
32
  enable_apis = false
33
33
  labels = local.labels
34
34
  }
@@ -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.2",
3
+ "version": "0.91.4",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {