terruvim-cli 0.1.4 → 0.1.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.
- package/README.md +4 -4
- package/dist/commands/create.js +9 -9
- package/dist/commands/up.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g terruvim-cli
|
|
|
20
20
|
$ terruvim COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ terruvim (--version)
|
|
23
|
-
terruvim-cli/0.1.
|
|
23
|
+
terruvim-cli/0.1.5 linux-x64 node-v24.13.0
|
|
24
24
|
$ terruvim --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ terruvim COMMAND
|
|
@@ -62,7 +62,7 @@ DESCRIPTION
|
|
|
62
62
|
Scaffold a new Terruvim project via Interactive Wizard
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
_See code: [src/commands/create.ts](https://github.com/vlad-vorobei/terruvim-cli/blob/v0.1.
|
|
65
|
+
_See code: [src/commands/create.ts](https://github.com/vlad-vorobei/terruvim-cli/blob/v0.1.5/src/commands/create.ts)_
|
|
66
66
|
|
|
67
67
|
## `terruvim help [COMMAND]`
|
|
68
68
|
|
|
@@ -386,7 +386,7 @@ DESCRIPTION
|
|
|
386
386
|
Initialize Pulumi stacks based on environment configs
|
|
387
387
|
```
|
|
388
388
|
|
|
389
|
-
_See code: [src/commands/setup.ts](https://github.com/vlad-vorobei/terruvim-cli/blob/v0.1.
|
|
389
|
+
_See code: [src/commands/setup.ts](https://github.com/vlad-vorobei/terruvim-cli/blob/v0.1.5/src/commands/setup.ts)_
|
|
390
390
|
|
|
391
391
|
## `terruvim up`
|
|
392
392
|
|
|
@@ -400,5 +400,5 @@ DESCRIPTION
|
|
|
400
400
|
Deploy Terruvim infrastructure (Auto-bootstrapping secrets)
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
-
_See code: [src/commands/up.ts](https://github.com/vlad-vorobei/terruvim-cli/blob/v0.1.
|
|
403
|
+
_See code: [src/commands/up.ts](https://github.com/vlad-vorobei/terruvim-cli/blob/v0.1.5/src/commands/up.ts)_
|
|
404
404
|
<!-- commandsstop -->
|
package/dist/commands/create.js
CHANGED
|
@@ -94,7 +94,7 @@ export default class Create extends Command {
|
|
|
94
94
|
message: 'Which architecture do you want to use?',
|
|
95
95
|
type: 'list',
|
|
96
96
|
choices: [
|
|
97
|
-
{ name: '
|
|
97
|
+
{ name: 'Django + React (Demo)', value: 'aws-default', checked: true },
|
|
98
98
|
{ name: 'Monolith (Simple)', value: 'monolith', disabled: true },
|
|
99
99
|
{ name: 'Microservices (Advanced)', value: 'microservices', disabled: true },
|
|
100
100
|
],
|
|
@@ -253,23 +253,23 @@ export default class Create extends Command {
|
|
|
253
253
|
this.log('☁️ AWS Configuration:');
|
|
254
254
|
this.log(' You need an AWS Account and IAM User credentials with infrastructure access.');
|
|
255
255
|
this.log(' Please configure your ~/.aws/credentials file with the following profiles:\n');
|
|
256
|
-
this.log(`
|
|
257
|
-
this.log('
|
|
258
|
-
this.log('
|
|
256
|
+
this.log(`[${projectName}-root]`);
|
|
257
|
+
this.log('aws_access_key_id=<YOUR_ACCESS_KEY>');
|
|
258
|
+
this.log('aws_secret_access_key=<YOUR_SECRET_KEY>\n');
|
|
259
259
|
answers.environments.forEach(env => {
|
|
260
|
-
this.log(`
|
|
261
|
-
this.log('
|
|
262
|
-
this.log('
|
|
260
|
+
this.log(`[${projectName}-${env}]`);
|
|
261
|
+
this.log('aws_access_key_id=<YOUR_ACCESS_KEY>');
|
|
262
|
+
this.log('aws_secret_access_key=<YOUR_SECRET_KEY>\n');
|
|
263
263
|
});
|
|
264
264
|
this.log(' (Tip: You can reuse the same credentials for all profiles if needed)\n');
|
|
265
265
|
}
|
|
266
266
|
this.log(`${step}. Initialize Infrastructure Stacks:`);
|
|
267
267
|
this.log(' Run this command inside the project to initialize Pulumi stacks:\n');
|
|
268
|
-
this.log(' $ terruvim setup\n');
|
|
268
|
+
this.log(' $ terruvim-cli setup\n');
|
|
269
269
|
step++;
|
|
270
270
|
this.log(`${step}. Deploy Infrastructure:`);
|
|
271
271
|
this.log(' Run this command to deploy your infrastructure:\n');
|
|
272
|
-
this.log(' $ terruvim up\n');
|
|
272
|
+
this.log(' $ terruvim-cli up\n');
|
|
273
273
|
this.log('🚀 Happy coding & easy deploying!');
|
|
274
274
|
return this.exit(0);
|
|
275
275
|
}
|
package/dist/commands/up.js
CHANGED
|
@@ -23,7 +23,7 @@ export default class Up extends Command {
|
|
|
23
23
|
const projectName = parts.slice(0, -1).join('-');
|
|
24
24
|
this.log(`📌 Context: Project [${projectName}] | Stack [${currentStack}] | Env [${env}]`);
|
|
25
25
|
const resourcesPath = path.join(projectDir, 'envs', 'resources.json');
|
|
26
|
-
const infrastructurePath = path.join(projectDir, 'envs', `infrastructure
|
|
26
|
+
const infrastructurePath = path.join(projectDir, 'envs', `infrastructure.json`);
|
|
27
27
|
// const secretId = `${projectName}/${env}/global-secret-base`; // TODO: Implement envs
|
|
28
28
|
const secretId = `${projectName}/global-secrets-base`;
|
|
29
29
|
const awsSpinner = ora(`Checking AWS Secret Manager: ${secretId}...`).start();
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "terruvim-cli",
|
|
3
3
|
"description": "CLI tool to scaffold and deploy Terruvim infrastructure on AWS using Pulumi",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"author": "Vlad Vorobei <vladyslavvorobei@gmail.com>",
|
|
6
6
|
"bin": {
|
|
7
7
|
"terruvim-cli": "./bin/run.js"
|