@voxgig/build 1.4.6 → 1.4.7

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/build.ts CHANGED
@@ -85,7 +85,7 @@ const EnvLambda = {
85
85
  // TODO: this should be a JSON structure exported as YAML
86
86
  let srvyml = `${name}:
87
87
  handler: ${handler.path.prefix}${name}${handler.path.suffix}
88
- role: Basic${AppName}LambdaRole01
88
+ role: Basic${AppName}LambdaRole\${self:custom.index.BasicLambdaRole,"01"}
89
89
  timeout: ${lambda.timeout}
90
90
  `
91
91
  const web = srv.api.web
@@ -471,10 +471,10 @@ exports.handler = async (
471
471
 
472
472
 
473
473
  content += `
474
- Basic${AppName}LambdaRole01:
474
+ Basic${AppName}LambdaRole\${self:custom.index.BasicLambdaRole,"01"}:
475
475
  Type: AWS::IAM::Role
476
476
  Properties:
477
- RoleName: Basic${AppName}LambdaRole01
477
+ RoleName: Basic${AppName}LambdaRole\${self:custom.index.BasicLambdaRole,"01"}
478
478
  AssumeRolePolicyDocument:
479
479
  Version: '2012-10-17'
480
480
  Statement:
package/dist/build.js CHANGED
@@ -68,7 +68,7 @@ const EnvLambda = {
68
68
  // TODO: this should be a JSON structure exported as YAML
69
69
  let srvyml = `${name}:
70
70
  handler: ${handler.path.prefix}${name}${handler.path.suffix}
71
- role: Basic${AppName}LambdaRole01
71
+ role: Basic${AppName}LambdaRole\${self:custom.index.BasicLambdaRole,"01"}
72
72
  timeout: ${lambda.timeout}
73
73
  `;
74
74
  const web = srv.api.web;
@@ -369,10 +369,10 @@ exports.handler = async (
369
369
  let customLambdaPolicyStatementContent = fs_1.default.existsSync(customLambdaPolicyStatementPath) ?
370
370
  fs_1.default.readFileSync(customLambdaPolicyStatementPath) : '';
371
371
  content += `
372
- Basic${AppName}LambdaRole01:
372
+ Basic${AppName}LambdaRole\${self:custom.index.BasicLambdaRole,"01"}:
373
373
  Type: AWS::IAM::Role
374
374
  Properties:
375
- RoleName: Basic${AppName}LambdaRole01
375
+ RoleName: Basic${AppName}LambdaRole\${self:custom.index.BasicLambdaRole,"01"}
376
376
  AssumeRolePolicyDocument:
377
377
  Version: '2012-10-17'
378
378
  Statement:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxgig/build",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "main": "dist/build.js",
5
5
  "type": "commonjs",
6
6
  "types": "dist/build.d.ts",