Skip to content

Commit 4d2d969

Browse files
authored
Improving names (#45)
1 parent acbde70 commit 4d2d969

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

lib/ag-handler.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const pkg = require('../package.json');
1111
*/
1212
exports.handler = async (event, context, callback) => {
1313
console.log(`handling callback event using ${pkg.name}/v${pkg.version}`);
14-
console.log(`environment:${JSON.stringify(process.env)}`);
1514

1615
try {
1716
assert.ok(event.body !== undefined, "event had no body");

lib/s3-handler.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ exports.handler = async (event, context, callback) => {
1717

1818
try {
1919
console.log(`handling s3 event using ${pkg.name}/v${pkg.version}`);
20-
console.log(`environment:${JSON.stringify(process.env)}`);
2120

2221
// pre-flight checks:
2322
assert.ok(CONFIG.CALLBACK_URL !== null, "api callback url cannot be null");

template.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ Parameters:
1212
scaniiApiSecret:
1313
Description: Your scanii.com API secret
1414
Type: String
15-
envSuffix:
16-
Description: The environment name (a suffix really) to be appended to your lambda functions
17-
Type: String
18-
Default: prod
1915
actionTagObject:
2016
Description: Should custom tags be added to S3 objects after processing?
2117
Type: String
@@ -37,7 +33,7 @@ Resources:
3733
DependsOn: ScaniiCallbackFn
3834
Properties:
3935
CodeUri: .
40-
FunctionName: !Sub "uvasoftware-scanii-lambda-submit-${envSuffix}"
36+
FunctionName: !Sub "${AWS::StackName}-Submit"
4137
Handler: lib/s3-handler.handler
4238
Runtime: nodejs12.x
4339
MemorySize: 256
@@ -60,7 +56,7 @@ Resources:
6056
Type: AWS::Serverless::Function
6157
Properties:
6258
CodeUri: .
63-
FunctionName: !Sub "uvasoftware-scanii-lambda-callback-${envSuffix}"
59+
FunctionName: !Sub "${AWS::StackName}-Callback"
6460
Handler: lib/ag-handler.handler
6561
Runtime: nodejs12.x
6662
MemorySize: 256

0 commit comments

Comments
 (0)