hereya-cli 0.57.2 → 0.57.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.
- package/README.md +38 -38
- package/dist/infrastructure/aws.js +4 -2
- package/oclif.manifest.json +57 -57
- package/package.json +1 -1
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.57.
|
|
23
|
+
hereya-cli/0.57.3 linux-x64 node-v24.12.0
|
|
24
24
|
$ hereya --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ hereya COMMAND
|
|
@@ -100,7 +100,7 @@ EXAMPLES
|
|
|
100
100
|
$ hereya add cloudy/docker_postgres
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
103
|
+
_See code: [src/commands/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/add/index.ts)_
|
|
104
104
|
|
|
105
105
|
## `hereya bootstrap INFRASTRUCTURETYPE`
|
|
106
106
|
|
|
@@ -125,7 +125,7 @@ EXAMPLES
|
|
|
125
125
|
$ hereya bootstrap local
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
128
|
+
_See code: [src/commands/bootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/bootstrap/index.ts)_
|
|
129
129
|
|
|
130
130
|
## `hereya config export-backend [FILE]`
|
|
131
131
|
|
|
@@ -147,7 +147,7 @@ EXAMPLES
|
|
|
147
147
|
$ hereya config export-backend ./path/to/export.json
|
|
148
148
|
```
|
|
149
149
|
|
|
150
|
-
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
150
|
+
_See code: [src/commands/config/export-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/config/export-backend/index.ts)_
|
|
151
151
|
|
|
152
152
|
## `hereya config get-backend`
|
|
153
153
|
|
|
@@ -164,7 +164,7 @@ EXAMPLES
|
|
|
164
164
|
$ hereya config get-backend
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
-
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
167
|
+
_See code: [src/commands/config/get-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/config/get-backend/index.ts)_
|
|
168
168
|
|
|
169
169
|
## `hereya config import-backend FILE`
|
|
170
170
|
|
|
@@ -184,7 +184,7 @@ EXAMPLES
|
|
|
184
184
|
$ hereya config import-backend ./path/to/cloud-backend.json
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
-
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
187
|
+
_See code: [src/commands/config/import-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/config/import-backend/index.ts)_
|
|
188
188
|
|
|
189
189
|
## `hereya config use-backend TYPE`
|
|
190
190
|
|
|
@@ -206,7 +206,7 @@ EXAMPLES
|
|
|
206
206
|
$ hereya config use-backend local
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
-
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
209
|
+
_See code: [src/commands/config/use-backend/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/config/use-backend/index.ts)_
|
|
210
210
|
|
|
211
211
|
## `hereya delete-state`
|
|
212
212
|
|
|
@@ -232,7 +232,7 @@ EXAMPLES
|
|
|
232
232
|
$ hereya delete-state --workspace staging
|
|
233
233
|
```
|
|
234
234
|
|
|
235
|
-
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
235
|
+
_See code: [src/commands/delete-state/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/delete-state/index.ts)_
|
|
236
236
|
|
|
237
237
|
## `hereya deploy`
|
|
238
238
|
|
|
@@ -257,7 +257,7 @@ EXAMPLES
|
|
|
257
257
|
$ hereya deploy
|
|
258
258
|
```
|
|
259
259
|
|
|
260
|
-
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
260
|
+
_See code: [src/commands/deploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/deploy/index.ts)_
|
|
261
261
|
|
|
262
262
|
## `hereya doc PACKAGE`
|
|
263
263
|
|
|
@@ -290,7 +290,7 @@ EXAMPLES
|
|
|
290
290
|
$ hereya doc my-package --no-doc
|
|
291
291
|
```
|
|
292
292
|
|
|
293
|
-
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
293
|
+
_See code: [src/commands/doc/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/doc/index.ts)_
|
|
294
294
|
|
|
295
295
|
## `hereya down`
|
|
296
296
|
|
|
@@ -317,7 +317,7 @@ EXAMPLES
|
|
|
317
317
|
$ hereya down
|
|
318
318
|
```
|
|
319
319
|
|
|
320
|
-
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
320
|
+
_See code: [src/commands/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/down/index.ts)_
|
|
321
321
|
|
|
322
322
|
## `hereya env [NAME]`
|
|
323
323
|
|
|
@@ -348,7 +348,7 @@ EXAMPLES
|
|
|
348
348
|
$ hereya env -w dev -l
|
|
349
349
|
```
|
|
350
350
|
|
|
351
|
-
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
351
|
+
_See code: [src/commands/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/env/index.ts)_
|
|
352
352
|
|
|
353
353
|
## `hereya env set [NAME]`
|
|
354
354
|
|
|
@@ -375,7 +375,7 @@ EXAMPLES
|
|
|
375
375
|
$ hereya env set FOO -v bar -w dev
|
|
376
376
|
```
|
|
377
377
|
|
|
378
|
-
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
378
|
+
_See code: [src/commands/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/env/set/index.ts)_
|
|
379
379
|
|
|
380
380
|
## `hereya flow add PACKAGE`
|
|
381
381
|
|
|
@@ -413,7 +413,7 @@ EXAMPLES
|
|
|
413
413
|
$ hereya flow add cloudy/docker_postgres -p DB_NAME=mydb -p DB_USER=admin
|
|
414
414
|
```
|
|
415
415
|
|
|
416
|
-
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
416
|
+
_See code: [src/commands/flow/add/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/flow/add/index.ts)_
|
|
417
417
|
|
|
418
418
|
## `hereya flow down`
|
|
419
419
|
|
|
@@ -447,7 +447,7 @@ EXAMPLES
|
|
|
447
447
|
$ hereya flow down --pin
|
|
448
448
|
```
|
|
449
449
|
|
|
450
|
-
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
450
|
+
_See code: [src/commands/flow/down/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/flow/down/index.ts)_
|
|
451
451
|
|
|
452
452
|
## `hereya flow env [NAME]`
|
|
453
453
|
|
|
@@ -481,7 +481,7 @@ EXAMPLES
|
|
|
481
481
|
$ hereya flow env -l
|
|
482
482
|
```
|
|
483
483
|
|
|
484
|
-
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
484
|
+
_See code: [src/commands/flow/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/flow/env/index.ts)_
|
|
485
485
|
|
|
486
486
|
## `hereya flow remove PACKAGE`
|
|
487
487
|
|
|
@@ -511,7 +511,7 @@ EXAMPLES
|
|
|
511
511
|
$ hereya flow remove cloudy/docker_postgres --profile staging
|
|
512
512
|
```
|
|
513
513
|
|
|
514
|
-
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
514
|
+
_See code: [src/commands/flow/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/flow/remove/index.ts)_
|
|
515
515
|
|
|
516
516
|
## `hereya flow run CMD`
|
|
517
517
|
|
|
@@ -540,7 +540,7 @@ EXAMPLES
|
|
|
540
540
|
$ hereya flow run --pin -- npm test
|
|
541
541
|
```
|
|
542
542
|
|
|
543
|
-
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
543
|
+
_See code: [src/commands/flow/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/flow/run/index.ts)_
|
|
544
544
|
|
|
545
545
|
## `hereya flow up`
|
|
546
546
|
|
|
@@ -574,7 +574,7 @@ EXAMPLES
|
|
|
574
574
|
$ hereya flow up --pin
|
|
575
575
|
```
|
|
576
576
|
|
|
577
|
-
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
577
|
+
_See code: [src/commands/flow/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/flow/up/index.ts)_
|
|
578
578
|
|
|
579
579
|
## `hereya help [COMMAND]`
|
|
580
580
|
|
|
@@ -631,7 +631,7 @@ EXAMPLES
|
|
|
631
631
|
$ hereya import org/my-package -f state.tfstate -w my-workspace
|
|
632
632
|
```
|
|
633
633
|
|
|
634
|
-
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
634
|
+
_See code: [src/commands/import/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/import/index.ts)_
|
|
635
635
|
|
|
636
636
|
## `hereya init PROJECT`
|
|
637
637
|
|
|
@@ -657,7 +657,7 @@ EXAMPLES
|
|
|
657
657
|
$ hereya init myProject -w=defaultWorkspace --chdir=./myProject
|
|
658
658
|
```
|
|
659
659
|
|
|
660
|
-
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
660
|
+
_See code: [src/commands/init/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/init/index.ts)_
|
|
661
661
|
|
|
662
662
|
## `hereya login [URL]`
|
|
663
663
|
|
|
@@ -686,7 +686,7 @@ EXAMPLES
|
|
|
686
686
|
$ hereya login --token=your-token https://cloud.hereya.dev
|
|
687
687
|
```
|
|
688
688
|
|
|
689
|
-
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
689
|
+
_See code: [src/commands/login/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/login/index.ts)_
|
|
690
690
|
|
|
691
691
|
## `hereya logout`
|
|
692
692
|
|
|
@@ -703,7 +703,7 @@ EXAMPLES
|
|
|
703
703
|
$ hereya logout
|
|
704
704
|
```
|
|
705
705
|
|
|
706
|
-
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
706
|
+
_See code: [src/commands/logout/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/logout/index.ts)_
|
|
707
707
|
|
|
708
708
|
## `hereya publish`
|
|
709
709
|
|
|
@@ -726,7 +726,7 @@ EXAMPLES
|
|
|
726
726
|
$ hereya publish --chdir=/path/to/package
|
|
727
727
|
```
|
|
728
728
|
|
|
729
|
-
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
729
|
+
_See code: [src/commands/publish/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/publish/index.ts)_
|
|
730
730
|
|
|
731
731
|
## `hereya remove PACKAGE`
|
|
732
732
|
|
|
@@ -754,7 +754,7 @@ EXAMPLES
|
|
|
754
754
|
$ hereya remove cloudy/docker_postgres
|
|
755
755
|
```
|
|
756
756
|
|
|
757
|
-
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
757
|
+
_See code: [src/commands/remove/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/remove/index.ts)_
|
|
758
758
|
|
|
759
759
|
## `hereya run CMD`
|
|
760
760
|
|
|
@@ -780,7 +780,7 @@ EXAMPLES
|
|
|
780
780
|
$ hereya run -w uat -- node index.js
|
|
781
781
|
```
|
|
782
782
|
|
|
783
|
-
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
783
|
+
_See code: [src/commands/run/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/run/index.ts)_
|
|
784
784
|
|
|
785
785
|
## `hereya unbootstrap INFRASTRUCTURETYPE`
|
|
786
786
|
|
|
@@ -805,7 +805,7 @@ EXAMPLES
|
|
|
805
805
|
$ hereya unbootstrap local
|
|
806
806
|
```
|
|
807
807
|
|
|
808
|
-
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
808
|
+
_See code: [src/commands/unbootstrap/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/unbootstrap/index.ts)_
|
|
809
809
|
|
|
810
810
|
## `hereya undeploy`
|
|
811
811
|
|
|
@@ -830,7 +830,7 @@ EXAMPLES
|
|
|
830
830
|
$ hereya undeploy
|
|
831
831
|
```
|
|
832
832
|
|
|
833
|
-
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
833
|
+
_See code: [src/commands/undeploy/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/undeploy/index.ts)_
|
|
834
834
|
|
|
835
835
|
## `hereya up`
|
|
836
836
|
|
|
@@ -857,7 +857,7 @@ EXAMPLES
|
|
|
857
857
|
$ hereya up
|
|
858
858
|
```
|
|
859
859
|
|
|
860
|
-
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
860
|
+
_See code: [src/commands/up/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/up/index.ts)_
|
|
861
861
|
|
|
862
862
|
## `hereya workspace create NAME`
|
|
863
863
|
|
|
@@ -882,7 +882,7 @@ EXAMPLES
|
|
|
882
882
|
$ hereya workspace create dev
|
|
883
883
|
```
|
|
884
884
|
|
|
885
|
-
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
885
|
+
_See code: [src/commands/workspace/create/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/create/index.ts)_
|
|
886
886
|
|
|
887
887
|
## `hereya workspace delete NAME`
|
|
888
888
|
|
|
@@ -902,7 +902,7 @@ EXAMPLES
|
|
|
902
902
|
$ hereya workspace delete dev
|
|
903
903
|
```
|
|
904
904
|
|
|
905
|
-
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
905
|
+
_See code: [src/commands/workspace/delete/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/delete/index.ts)_
|
|
906
906
|
|
|
907
907
|
## `hereya workspace env [NAME]`
|
|
908
908
|
|
|
@@ -928,7 +928,7 @@ EXAMPLES
|
|
|
928
928
|
$ hereya workspace env myEnv -w dev
|
|
929
929
|
```
|
|
930
930
|
|
|
931
|
-
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
931
|
+
_See code: [src/commands/workspace/env/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/env/index.ts)_
|
|
932
932
|
|
|
933
933
|
## `hereya workspace env set`
|
|
934
934
|
|
|
@@ -952,7 +952,7 @@ EXAMPLES
|
|
|
952
952
|
$ hereya workspace env set -w my-workspace -n myVar -v my-value -i aws -s
|
|
953
953
|
```
|
|
954
954
|
|
|
955
|
-
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
955
|
+
_See code: [src/commands/workspace/env/set/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/env/set/index.ts)_
|
|
956
956
|
|
|
957
957
|
## `hereya workspace env unset`
|
|
958
958
|
|
|
@@ -973,7 +973,7 @@ EXAMPLES
|
|
|
973
973
|
$ hereya workspace env unset -w my-workspace -n myVar
|
|
974
974
|
```
|
|
975
975
|
|
|
976
|
-
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
976
|
+
_See code: [src/commands/workspace/env/unset/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/env/unset/index.ts)_
|
|
977
977
|
|
|
978
978
|
## `hereya workspace install PACKAGE`
|
|
979
979
|
|
|
@@ -1000,7 +1000,7 @@ EXAMPLES
|
|
|
1000
1000
|
$ hereya workspace install hereya/aws-cognito
|
|
1001
1001
|
```
|
|
1002
1002
|
|
|
1003
|
-
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
1003
|
+
_See code: [src/commands/workspace/install/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/install/index.ts)_
|
|
1004
1004
|
|
|
1005
1005
|
## `hereya workspace list`
|
|
1006
1006
|
|
|
@@ -1017,7 +1017,7 @@ EXAMPLES
|
|
|
1017
1017
|
$ hereya workspace list
|
|
1018
1018
|
```
|
|
1019
1019
|
|
|
1020
|
-
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
1020
|
+
_See code: [src/commands/workspace/list/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/list/index.ts)_
|
|
1021
1021
|
|
|
1022
1022
|
## `hereya workspace set-profile PROFILE`
|
|
1023
1023
|
|
|
@@ -1041,7 +1041,7 @@ EXAMPLES
|
|
|
1041
1041
|
$ hereya workspace set-profile prod-profile -w production
|
|
1042
1042
|
```
|
|
1043
1043
|
|
|
1044
|
-
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
1044
|
+
_See code: [src/commands/workspace/set-profile/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/set-profile/index.ts)_
|
|
1045
1045
|
|
|
1046
1046
|
## `hereya workspace uninstall PACKAGE`
|
|
1047
1047
|
|
|
@@ -1068,5 +1068,5 @@ EXAMPLES
|
|
|
1068
1068
|
$ hereya workspace uninstall hereya/aws-cognito
|
|
1069
1069
|
```
|
|
1070
1070
|
|
|
1071
|
-
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.
|
|
1071
|
+
_See code: [src/commands/workspace/uninstall/index.ts](https://github.com/hereya/hereya-cli/blob/v0.57.3/src/commands/workspace/uninstall/index.ts)_
|
|
1072
1072
|
<!-- commandsstop -->
|
|
@@ -14,7 +14,7 @@ export class AwsInfrastructure {
|
|
|
14
14
|
async bootstrap(_) {
|
|
15
15
|
const stsClient = new STSClient({});
|
|
16
16
|
const { Account: accountId } = await stsClient.send(new GetCallerIdentityCommand({}));
|
|
17
|
-
const region =
|
|
17
|
+
const { region } = stsClient.config;
|
|
18
18
|
await runShell('npx', ['cdk', 'bootstrap', `aws://${accountId}/${region}`]);
|
|
19
19
|
const bootstrapPackage = 'hereya/bootstrap-aws-stack';
|
|
20
20
|
const output = await provisionPackage({ package: bootstrapPackage });
|
|
@@ -163,7 +163,9 @@ export class AwsInfrastructure {
|
|
|
163
163
|
const ssmClient = new SSMClient({});
|
|
164
164
|
const id = randomUUID();
|
|
165
165
|
const parameterStoreArnPattern = /^arn:aws:ssm:[\da-z-]+:\d{12}:parameter(\/[\w./-]+)$/;
|
|
166
|
-
const ssmParameterName = input.oldValue
|
|
166
|
+
const ssmParameterName = input.oldValue
|
|
167
|
+
? parameterStoreArnPattern.exec(input.oldValue)?.[1] ?? `/hereya/${input.name}/${id}`
|
|
168
|
+
: `/hereya/${input.name}/${id}`;
|
|
167
169
|
await ssmClient.send(new PutParameterCommand({
|
|
168
170
|
Name: ssmParameterName,
|
|
169
171
|
Overwrite: true,
|
package/oclif.manifest.json
CHANGED
|
@@ -447,42 +447,37 @@
|
|
|
447
447
|
"index.js"
|
|
448
448
|
]
|
|
449
449
|
},
|
|
450
|
-
"
|
|
450
|
+
"login": {
|
|
451
451
|
"aliases": [],
|
|
452
452
|
"args": {
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
453
|
+
"url": {
|
|
454
|
+
"default": "https://cloud.hereya.dev",
|
|
455
|
+
"description": "URL of the Hereya Cloud instance",
|
|
456
|
+
"name": "url",
|
|
457
|
+
"required": false
|
|
457
458
|
}
|
|
458
459
|
},
|
|
459
|
-
"description": "
|
|
460
|
+
"description": "Login to Hereya Cloud",
|
|
460
461
|
"examples": [
|
|
461
|
-
"
|
|
462
|
-
"
|
|
462
|
+
"$ hereya login",
|
|
463
|
+
"$ hereya login https://cloud.hereya.dev",
|
|
464
|
+
"$ hereya login --token=your-token",
|
|
465
|
+
"$ hereya login --token=your-token https://cloud.hereya.dev"
|
|
463
466
|
],
|
|
464
467
|
"flags": {
|
|
465
|
-
"
|
|
466
|
-
"
|
|
467
|
-
"
|
|
468
|
+
"token": {
|
|
469
|
+
"char": "t",
|
|
470
|
+
"description": "Token to use for login",
|
|
471
|
+
"name": "token",
|
|
468
472
|
"required": false,
|
|
469
473
|
"hasDynamicHelp": false,
|
|
470
474
|
"multiple": false,
|
|
471
475
|
"type": "option"
|
|
472
|
-
},
|
|
473
|
-
"workspace": {
|
|
474
|
-
"char": "w",
|
|
475
|
-
"description": "workspace to set as default",
|
|
476
|
-
"name": "workspace",
|
|
477
|
-
"required": true,
|
|
478
|
-
"hasDynamicHelp": false,
|
|
479
|
-
"multiple": false,
|
|
480
|
-
"type": "option"
|
|
481
476
|
}
|
|
482
477
|
},
|
|
483
478
|
"hasDynamicHelp": false,
|
|
484
479
|
"hiddenAliases": [],
|
|
485
|
-
"id": "
|
|
480
|
+
"id": "login",
|
|
486
481
|
"pluginAlias": "hereya-cli",
|
|
487
482
|
"pluginName": "hereya-cli",
|
|
488
483
|
"pluginType": "core",
|
|
@@ -492,41 +487,46 @@
|
|
|
492
487
|
"relativePath": [
|
|
493
488
|
"dist",
|
|
494
489
|
"commands",
|
|
495
|
-
"
|
|
490
|
+
"login",
|
|
496
491
|
"index.js"
|
|
497
492
|
]
|
|
498
493
|
},
|
|
499
|
-
"
|
|
494
|
+
"init": {
|
|
500
495
|
"aliases": [],
|
|
501
496
|
"args": {
|
|
502
|
-
"
|
|
503
|
-
"
|
|
504
|
-
"
|
|
505
|
-
"
|
|
506
|
-
"required": false
|
|
497
|
+
"project": {
|
|
498
|
+
"description": "project name",
|
|
499
|
+
"name": "project",
|
|
500
|
+
"required": true
|
|
507
501
|
}
|
|
508
502
|
},
|
|
509
|
-
"description": "
|
|
503
|
+
"description": "Initialize hereya in a project directory.",
|
|
510
504
|
"examples": [
|
|
511
|
-
"
|
|
512
|
-
"
|
|
513
|
-
"$ hereya login --token=your-token",
|
|
514
|
-
"$ hereya login --token=your-token https://cloud.hereya.dev"
|
|
505
|
+
"<%= config.bin %> <%= command.id %> myProject -w=defaultWorkspace",
|
|
506
|
+
"<%= config.bin %> <%= command.id %> myProject -w=defaultWorkspace --chdir=./myProject"
|
|
515
507
|
],
|
|
516
508
|
"flags": {
|
|
517
|
-
"
|
|
518
|
-
"
|
|
519
|
-
"
|
|
520
|
-
"name": "token",
|
|
509
|
+
"chdir": {
|
|
510
|
+
"description": "directory to run command in",
|
|
511
|
+
"name": "chdir",
|
|
521
512
|
"required": false,
|
|
522
513
|
"hasDynamicHelp": false,
|
|
523
514
|
"multiple": false,
|
|
524
515
|
"type": "option"
|
|
516
|
+
},
|
|
517
|
+
"workspace": {
|
|
518
|
+
"char": "w",
|
|
519
|
+
"description": "workspace to set as default",
|
|
520
|
+
"name": "workspace",
|
|
521
|
+
"required": true,
|
|
522
|
+
"hasDynamicHelp": false,
|
|
523
|
+
"multiple": false,
|
|
524
|
+
"type": "option"
|
|
525
525
|
}
|
|
526
526
|
},
|
|
527
527
|
"hasDynamicHelp": false,
|
|
528
528
|
"hiddenAliases": [],
|
|
529
|
-
"id": "
|
|
529
|
+
"id": "init",
|
|
530
530
|
"pluginAlias": "hereya-cli",
|
|
531
531
|
"pluginName": "hereya-cli",
|
|
532
532
|
"pluginType": "core",
|
|
@@ -536,7 +536,7 @@
|
|
|
536
536
|
"relativePath": [
|
|
537
537
|
"dist",
|
|
538
538
|
"commands",
|
|
539
|
-
"
|
|
539
|
+
"init",
|
|
540
540
|
"index.js"
|
|
541
541
|
]
|
|
542
542
|
},
|
|
@@ -909,24 +909,23 @@
|
|
|
909
909
|
"index.js"
|
|
910
910
|
]
|
|
911
911
|
},
|
|
912
|
-
"config:
|
|
912
|
+
"config:import-backend": {
|
|
913
913
|
"aliases": [],
|
|
914
914
|
"args": {
|
|
915
|
-
"
|
|
916
|
-
"description": "
|
|
917
|
-
"name": "
|
|
915
|
+
"file": {
|
|
916
|
+
"description": "Path to the file containing the backend configuration to import",
|
|
917
|
+
"name": "file",
|
|
918
918
|
"required": true
|
|
919
919
|
}
|
|
920
920
|
},
|
|
921
|
-
"description": "
|
|
921
|
+
"description": "Import a backend configuration from a file",
|
|
922
922
|
"examples": [
|
|
923
|
-
"<%= config.bin %> <%= command.id %>
|
|
924
|
-
"<%= config.bin %> <%= command.id %> local"
|
|
923
|
+
"<%= config.bin %> <%= command.id %> ./path/to/cloud-backend.json"
|
|
925
924
|
],
|
|
926
925
|
"flags": {},
|
|
927
926
|
"hasDynamicHelp": false,
|
|
928
927
|
"hiddenAliases": [],
|
|
929
|
-
"id": "config:
|
|
928
|
+
"id": "config:import-backend",
|
|
930
929
|
"pluginAlias": "hereya-cli",
|
|
931
930
|
"pluginName": "hereya-cli",
|
|
932
931
|
"pluginType": "core",
|
|
@@ -937,27 +936,28 @@
|
|
|
937
936
|
"dist",
|
|
938
937
|
"commands",
|
|
939
938
|
"config",
|
|
940
|
-
"
|
|
939
|
+
"import-backend",
|
|
941
940
|
"index.js"
|
|
942
941
|
]
|
|
943
942
|
},
|
|
944
|
-
"config:
|
|
943
|
+
"config:use-backend": {
|
|
945
944
|
"aliases": [],
|
|
946
945
|
"args": {
|
|
947
|
-
"
|
|
948
|
-
"description": "
|
|
949
|
-
"name": "
|
|
946
|
+
"type": {
|
|
947
|
+
"description": "type of backend to use. Possible values: s3, local",
|
|
948
|
+
"name": "type",
|
|
950
949
|
"required": true
|
|
951
950
|
}
|
|
952
951
|
},
|
|
953
|
-
"description": "
|
|
952
|
+
"description": "set the current backend type",
|
|
954
953
|
"examples": [
|
|
955
|
-
"<%= config.bin %> <%= command.id %>
|
|
954
|
+
"<%= config.bin %> <%= command.id %> s3",
|
|
955
|
+
"<%= config.bin %> <%= command.id %> local"
|
|
956
956
|
],
|
|
957
957
|
"flags": {},
|
|
958
958
|
"hasDynamicHelp": false,
|
|
959
959
|
"hiddenAliases": [],
|
|
960
|
-
"id": "config:
|
|
960
|
+
"id": "config:use-backend",
|
|
961
961
|
"pluginAlias": "hereya-cli",
|
|
962
962
|
"pluginName": "hereya-cli",
|
|
963
963
|
"pluginType": "core",
|
|
@@ -968,7 +968,7 @@
|
|
|
968
968
|
"dist",
|
|
969
969
|
"commands",
|
|
970
970
|
"config",
|
|
971
|
-
"
|
|
971
|
+
"use-backend",
|
|
972
972
|
"index.js"
|
|
973
973
|
]
|
|
974
974
|
},
|
|
@@ -1877,5 +1877,5 @@
|
|
|
1877
1877
|
]
|
|
1878
1878
|
}
|
|
1879
1879
|
},
|
|
1880
|
-
"version": "0.57.
|
|
1880
|
+
"version": "0.57.3"
|
|
1881
1881
|
}
|