Skip to content

Commit c9dbb59

Browse files
feat: include s3 in validate.js
1 parent a9ff5db commit c9dbb59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/apiGateway/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = {
5151
},
5252

5353
async checkAllowedService(serviceName) {
54-
const allowedProxies = ['kinesis', 'sqs']
54+
const allowedProxies = ['kinesis', 'sqs', 's3']
5555
if (allowedProxies.indexOf(serviceName) === NOT_FOUND) {
5656
const errorMessage = [
5757
`Invalid APIG proxy "${serviceName}".`,

lib/apiGateway/validate.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('#validateServiceProxies()', () => {
3737
}
3838

3939
await expect(serverlessApigatewayServiceProxy.validateServiceProxies()).to.be.rejectedWith(
40-
'Invalid APIG proxy "xxxxx". This plugin supported Proxies are: kinesis, sqs.'
40+
'Invalid APIG proxy "xxxxx". This plugin supported Proxies are: kinesis, sqs, s3.'
4141
)
4242
})
4343

0 commit comments

Comments
 (0)