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

Does not work with `serverless-plugin-split-stacks` #44

Closed thisjeremiah closed 5 years ago

thisjeremiah commented 5 years ago

Looks like this plugin does not work with serverless-plugin-split-stacks, a suggested plugin by serverless-appsync-plugin to solve the 200 CF resource limit.

I get the error message:

ERROR: amplify-plugin: Cannot load resources: No GraphQL API found - cannot write schema.json file

And if I use SLS_DEBUG=*, I can see that the nested stacks are being skipped:

amplify-plugin: Skipping {"LogicalResourceId":"AppSyncNestedStack","PhysicalResourceId":"arn:aws:cloudformation:us-west-2:*:stack/*-AppSyncNestedStack-*/*",
"ResourceType":"AWS::CloudFormation::Stack","LastUpdatedTimestamp":"2019-01-15T18:39:25.317Z","ResourceStatus":"UPDATE_COMPLETE","DriftInformation":{"StackResourceDriftStatus":"NOT_CHECKED"}}

Perhaps the fix could be to recursively check the nested stacks?

adrianhall commented 5 years ago

Thanks for this. I see the PR for this as well, and will process.