amazon-archives / aws-amplify-serverless-plugin

Plugin for the Serverless Framework to output AWS Amplify configuration files.
Apache License 2.0
124 stars 30 forks source link

ERROR: amplify-plugin: Cannot load resources: 1 validation error detected #19

Closed adrianhall closed 5 years ago

adrianhall commented 5 years ago

When building the chatql example:

ERROR: amplify-plugin: Cannot load resources: 1 validation error detected: Value 'chatql-${opt:stage, 'dev'}' at 'stackNameOrId' failed to satisfy constraint: Member must satisfy regular expression pattern: [a-zA-Z][-a-zA-Z0-9]*|arn:[-a-zA-Z0-9:/._+]*
adrianhall commented 5 years ago

This is an error within the template - not the library.

dkt201474 commented 5 years ago

hi @adrianhall I'm getting the same error. What did you change in your template to get rid of the error ?

adrianhall commented 5 years ago

For me, there was an error in provider.stage that I was using that made the stage 'dev' instead of dev when passed through to the module. I was not using the stage anywhere else, but that caused the crash.

If that isn't your error, open up an issue with your template attached.