Skip to content

Commit 1c167db

Browse files
committed
add provider type
1 parent 553ed22 commit 1c167db

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

serverless.component.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: graphql
2-
version: 3.0.3
2+
version: 3.0.4
33
author: eahefnawy
44
org: serverlessinc
55
description: Create a GraphQL API with AWS AppSync
@@ -8,3 +8,7 @@ repo: https://github.com/owner/project
88
readme: ''
99
license: MIT
1010
main: ./src
11+
12+
types:
13+
providers:
14+
- aws

src/serverless.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ const getSchema = async (sourceDirectory, schemaFilename) => {
4141

4242
class GraphQL extends Component {
4343
async deploy(inputs = {}) {
44-
// this error message assumes that the user is running via the CLI though...
45-
if (Object.keys(this.credentials.aws).length === 0) {
46-
const msg = `Credentials not found. Make sure you have a .env file in the cwd. - Docs: https://git.io/JvArp`
47-
throw new Error(msg)
48-
}
49-
5044
inputs.region = inputs.region || 'us-east-1'
5145
inputs.name = inputs.name || this.name
5246
this.state.region = inputs.region

0 commit comments

Comments
 (0)