@friggframework/devtools 2.0.0-next.33 → 2.0.0-next.35
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/frigg-cli/deploy-command/index.js +4 -3
- package/infrastructure/AWS-IAM-CREDENTIAL-NEEDS.md +442 -411
- package/infrastructure/GENERATE-IAM-DOCS.md +91 -66
- package/infrastructure/frigg-deployment-iam-stack.yaml +22 -0
- package/infrastructure/iam-generator.js +210 -229
- package/infrastructure/serverless-template.js +426 -243
- package/package.json +6 -6
|
@@ -3,9 +3,9 @@ const path = require('path');
|
|
|
3
3
|
|
|
4
4
|
async function deployCommand(options) {
|
|
5
5
|
console.log('Deploying the serverless application...');
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
// AWS discovery is now handled directly in serverless-template.js
|
|
8
|
-
console.log('
|
|
8
|
+
console.log('🤘🏼 Deploying serverless application...');
|
|
9
9
|
const backendPath = path.resolve(process.cwd());
|
|
10
10
|
const infrastructurePath = 'infrastructure.js';
|
|
11
11
|
const command = 'serverless';
|
|
@@ -14,12 +14,13 @@ async function deployCommand(options) {
|
|
|
14
14
|
'--config',
|
|
15
15
|
infrastructurePath,
|
|
16
16
|
'--stage',
|
|
17
|
-
options.stage
|
|
17
|
+
options.stage,
|
|
18
18
|
];
|
|
19
19
|
|
|
20
20
|
const childProcess = spawn(command, serverlessArgs, {
|
|
21
21
|
cwd: backendPath,
|
|
22
22
|
stdio: 'inherit',
|
|
23
|
+
env: { ...process.env },
|
|
23
24
|
});
|
|
24
25
|
|
|
25
26
|
childProcess.on('error', (error) => {
|