-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1596 from blackflux/dev
[Gally]: master <- dev
- Loading branch information
Showing
13 changed files
with
317 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"description": "Configuration file for aws-sdk require.", | ||
"details": ["AWS SDK initialization file."], | ||
"formats": ["other"], | ||
"requires": ["aws-sdk-wrap", "aws"], | ||
"website": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/plugin/tasks/serverless/snippets/serverless/src/core/aws.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('aws-sdk'); |
13 changes: 10 additions & 3 deletions
13
src/plugin/tasks/serverless/snippets/serverless/src/core/aws.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
const { logger } = require('lambda-monitor-logger'); | ||
const aws = require('aws-sdk-wrap')({ logger }); | ||
import { logger } from 'lambda-monitor-logger'; | ||
import AwsSdkWrap from 'aws-sdk-wrap'; | ||
import AWS from './aws.cjs'; | ||
|
||
module.exports = aws; | ||
export default AwsSdkWrap({ | ||
logger, | ||
configService: { dynamodb: { endpoint: process.env.DYNAMODB_ENDPOINT } }, | ||
services: { | ||
S3: AWS.S3 | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"target": "src/core/aws.cjs", | ||
"format": "txt", | ||
"strategy": "overwrite", | ||
"snippets": [ | ||
"serverless/src/core/aws.cjs" | ||
], | ||
"requires": [ | ||
"javascript" | ||
], | ||
"purpose": [ | ||
"Create aws sdk require file." | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test/projects/assorted/@sls-closedsource-dynamodb/src/core/aws.cjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('aws-sdk'); |
Oops, something went wrong.