Skip to content

Commit bd961d9

Browse files
committed
add provider type
1 parent 6ec3610 commit bd961d9

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

serverless.component.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ repo: https://github.com/serverless-components/express
88
license: MIT
99
main: ./src
1010

11+
types:
12+
providers:
13+
- aws
14+
1115
actions:
1216
# deploy
1317
deploy:

src/serverless.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ class Express extends Component {
2727
async deploy(inputs) {
2828
const outputs = {};
2929

30-
// Check credentials exist
31-
if (Object.keys(this.credentials.aws).length === 0) {
32-
const msg =
33-
'AWS Credentials not found. Make sure you have a .env file in the current working directory. - Docs: https://git.io/JvArp';
34-
throw new Error(msg);
35-
}
36-
3730
console.log('Deploying Express App...');
3831

3932
inputs.domain = inputs.domain

0 commit comments

Comments
 (0)