hereya-cli 0.37.0 → 0.37.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/README.md CHANGED
@@ -20,7 +20,7 @@ $ npm install -g hereya-cli
20
20
  $ hereya COMMAND
21
21
  running command...
22
22
  $ hereya (--version)
23
- hereya-cli/0.37.0 linux-x64 node-v22.15.0
23
+ hereya-cli/0.37.1 linux-x64 node-v22.15.0
24
24
  $ hereya --help [COMMAND]
25
25
  USAGE
26
26
  $ hereya COMMAND
@@ -88,7 +88,7 @@ EXAMPLES
88
88
  $ hereya add cloudy/docker_postgres
89
89
  ```
90
90
 
91
- _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/add/index.ts)_
91
+ _See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/add/index.ts)_
92
92
 
93
93
  ## `hereya bootstrap INFRASTRUCTURETYPE`
94
94
 
@@ -113,7 +113,7 @@ EXAMPLES
113
113
  $ hereya bootstrap local
114
114
  ```
115
115
 
116
- _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/bootstrap/index.ts)_
116
+ _See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/bootstrap/index.ts)_
117
117
 
118
118
  ## `hereya config export-backend [FILE]`
119
119
 
@@ -135,7 +135,7 @@ EXAMPLES
135
135
  $ hereya config export-backend ./path/to/export.json
136
136
  ```
137
137
 
138
- _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/config/export-backend/index.ts)_
138
+ _See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/config/export-backend/index.ts)_
139
139
 
140
140
  ## `hereya config get-backend`
141
141
 
@@ -152,7 +152,7 @@ EXAMPLES
152
152
  $ hereya config get-backend
153
153
  ```
154
154
 
155
- _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/config/get-backend/index.ts)_
155
+ _See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/config/get-backend/index.ts)_
156
156
 
157
157
  ## `hereya config import-backend FILE`
158
158
 
@@ -172,7 +172,7 @@ EXAMPLES
172
172
  $ hereya config import-backend ./path/to/cloud-backend.json
173
173
  ```
174
174
 
175
- _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/config/import-backend/index.ts)_
175
+ _See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/config/import-backend/index.ts)_
176
176
 
177
177
  ## `hereya config use-backend TYPE`
178
178
 
@@ -194,7 +194,7 @@ EXAMPLES
194
194
  $ hereya config use-backend local
195
195
  ```
196
196
 
197
- _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/config/use-backend/index.ts)_
197
+ _See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/config/use-backend/index.ts)_
198
198
 
199
199
  ## `hereya deploy`
200
200
 
@@ -219,7 +219,7 @@ EXAMPLES
219
219
  $ hereya deploy
220
220
  ```
221
221
 
222
- _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/deploy/index.ts)_
222
+ _See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/deploy/index.ts)_
223
223
 
224
224
  ## `hereya down`
225
225
 
@@ -246,7 +246,7 @@ EXAMPLES
246
246
  $ hereya down
247
247
  ```
248
248
 
249
- _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/down/index.ts)_
249
+ _See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/down/index.ts)_
250
250
 
251
251
  ## `hereya env [NAME]`
252
252
 
@@ -277,7 +277,7 @@ EXAMPLES
277
277
  $ hereya env -w dev -l
278
278
  ```
279
279
 
280
- _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/env/index.ts)_
280
+ _See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/env/index.ts)_
281
281
 
282
282
  ## `hereya env set [NAME]`
283
283
 
@@ -304,7 +304,7 @@ EXAMPLES
304
304
  $ hereya env set FOO -v bar -w dev
305
305
  ```
306
306
 
307
- _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/env/set/index.ts)_
307
+ _See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/env/set/index.ts)_
308
308
 
309
309
  ## `hereya help [COMMAND]`
310
310
 
@@ -350,7 +350,7 @@ EXAMPLES
350
350
  $ hereya init myProject -w=defaultWorkspace --chdir=./myProject
351
351
  ```
352
352
 
353
- _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/init/index.ts)_
353
+ _See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/init/index.ts)_
354
354
 
355
355
  ## `hereya login [URL]`
356
356
 
@@ -374,7 +374,7 @@ EXAMPLES
374
374
  $ hereya login http://localhost:5173
375
375
  ```
376
376
 
377
- _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/login/index.ts)_
377
+ _See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/login/index.ts)_
378
378
 
379
379
  ## `hereya logout`
380
380
 
@@ -391,7 +391,7 @@ EXAMPLES
391
391
  $ hereya logout
392
392
  ```
393
393
 
394
- _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/logout/index.ts)_
394
+ _See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/logout/index.ts)_
395
395
 
396
396
  ## `hereya remove PACKAGE`
397
397
 
@@ -418,7 +418,7 @@ EXAMPLES
418
418
  $ hereya remove cloudy/docker_postgres
419
419
  ```
420
420
 
421
- _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/remove/index.ts)_
421
+ _See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/remove/index.ts)_
422
422
 
423
423
  ## `hereya run CMD`
424
424
 
@@ -444,7 +444,7 @@ EXAMPLES
444
444
  $ hereya run -w uat -- node index.js
445
445
  ```
446
446
 
447
- _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/run/index.ts)_
447
+ _See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/run/index.ts)_
448
448
 
449
449
  ## `hereya unbootstrap INFRASTRUCTURETYPE`
450
450
 
@@ -469,7 +469,7 @@ EXAMPLES
469
469
  $ hereya unbootstrap local
470
470
  ```
471
471
 
472
- _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/unbootstrap/index.ts)_
472
+ _See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/unbootstrap/index.ts)_
473
473
 
474
474
  ## `hereya undeploy`
475
475
 
@@ -494,7 +494,7 @@ EXAMPLES
494
494
  $ hereya undeploy
495
495
  ```
496
496
 
497
- _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/undeploy/index.ts)_
497
+ _See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/undeploy/index.ts)_
498
498
 
499
499
  ## `hereya up`
500
500
 
@@ -521,7 +521,7 @@ EXAMPLES
521
521
  $ hereya up
522
522
  ```
523
523
 
524
- _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/up/index.ts)_
524
+ _See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/up/index.ts)_
525
525
 
526
526
  ## `hereya workspace create NAME`
527
527
 
@@ -544,7 +544,7 @@ EXAMPLES
544
544
  $ hereya workspace create dev
545
545
  ```
546
546
 
547
- _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/workspace/create/index.ts)_
547
+ _See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/workspace/create/index.ts)_
548
548
 
549
549
  ## `hereya workspace delete NAME`
550
550
 
@@ -564,7 +564,7 @@ EXAMPLES
564
564
  $ hereya workspace delete dev
565
565
  ```
566
566
 
567
- _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/workspace/delete/index.ts)_
567
+ _See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/workspace/delete/index.ts)_
568
568
 
569
569
  ## `hereya workspace env [NAME]`
570
570
 
@@ -590,7 +590,7 @@ EXAMPLES
590
590
  $ hereya workspace env myEnv -w dev
591
591
  ```
592
592
 
593
- _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/workspace/env/index.ts)_
593
+ _See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/workspace/env/index.ts)_
594
594
 
595
595
  ## `hereya workspace env set`
596
596
 
@@ -614,7 +614,7 @@ EXAMPLES
614
614
  $ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
615
615
  ```
616
616
 
617
- _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/workspace/env/set/index.ts)_
617
+ _See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/workspace/env/set/index.ts)_
618
618
 
619
619
  ## `hereya workspace env unset`
620
620
 
@@ -635,7 +635,7 @@ EXAMPLES
635
635
  $ hereya workspace env unset -w my-workspace -n myVar
636
636
  ```
637
637
 
638
- _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/workspace/env/unset/index.ts)_
638
+ _See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/workspace/env/unset/index.ts)_
639
639
 
640
640
  ## `hereya workspace install PACKAGE`
641
641
 
@@ -662,7 +662,7 @@ EXAMPLES
662
662
  $ hereya workspace install hereya/aws-cognito
663
663
  ```
664
664
 
665
- _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/workspace/install/index.ts)_
665
+ _See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/workspace/install/index.ts)_
666
666
 
667
667
  ## `hereya workspace list`
668
668
 
@@ -679,7 +679,7 @@ EXAMPLES
679
679
  $ hereya workspace list
680
680
  ```
681
681
 
682
- _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/workspace/list/index.ts)_
682
+ _See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/workspace/list/index.ts)_
683
683
 
684
684
  ## `hereya workspace uninstall PACKAGE`
685
685
 
@@ -706,5 +706,5 @@ EXAMPLES
706
706
  $ hereya workspace uninstall hereya/aws-cognito
707
707
  ```
708
708
 
709
- _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.0/src/commands/workspace/uninstall/index.ts)_
709
+ _See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.37.1/src/commands/workspace/uninstall/index.ts)_
710
710
  <!-- commandsstop -->
@@ -161,7 +161,8 @@ export class AwsInfrastructure {
161
161
  }
162
162
  const ssmClient = new SSMClient({});
163
163
  const id = randomUUID();
164
- const ssmParameterName = input.oldValue ?? `/hereya/${input.name}/${id}`;
164
+ const parameterStoreArnPattern = /^arn:aws:ssm:[\da-z-]+:\d{12}:parameter(\/[\w./-]+)$/;
165
+ const ssmParameterName = input.oldValue ? (parameterStoreArnPattern.exec(input.oldValue)?.[1] ?? `/hereya/${input.name}/${id}`) : `/hereya/${input.name}/${id}`;
165
166
  await ssmClient.send(new PutParameterCommand({
166
167
  Name: ssmParameterName,
167
168
  Overwrite: true,
@@ -1183,5 +1183,5 @@
1183
1183
  ]
1184
1184
  }
1185
1185
  },
1186
- "version": "0.37.0"
1186
+ "version": "0.37.1"
1187
1187
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hereya-cli",
3
3
  "description": "Infrastructure as Package",
4
- "version": "0.37.0",
4
+ "version": "0.37.1",
5
5
  "author": "Hereya Developers",
6
6
  "bin": {
7
7
  "hereya": "./bin/run.js"