Skip to content

Can't separate appsync into different file #606

@willa75

Description

@willa75

Hey there,

I started playing around with version 2.2.1 of this plugin, and I encountered an error with it being unable to pick up authorization (unsure about other fields) when I separate the appsync config into its own file like so:

appSync:
  - ${file(serverless.appsync-api.yml )}

I specifically get an error saying that Can't read 'type' of undefined where it references this line (99):

if (config.authentication.type === 'API_KEY' || 
    additionalAuthentications.some(function (auth) { return auth.type === 'API_KEY'; })) {

underneath the function/file getAppSyncConfig.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions