Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of stage specific setting for split stacks case #7735

Merged
merged 2 commits into from
May 15, 2020

Conversation

medikoo
Copy link
Contributor

@medikoo medikoo commented May 15, 2020

In setup where resources are distributed into nested stacks, API Gateway resource may not be present in main stack.

With #7663 we've changed behavior, and assume there's no API Gateway if it doesn't appear in main stack. Still it broke for services relying on e.g. serverless-plugin-split-stacks plugin.

This patch ensures that if there are http events configured we unconditionally attempt to find the Rest API Id and it's deployment.

Additionally improved configuration check to be based on deployment id and not just rest API id (if there's no deployment, then we're also incapable on applying any stage settings)

Confirm on deployment not just Rest API
Uncoditionally search for Rest API if `http` events are configured
@medikoo medikoo self-assigned this May 15, 2020
@medikoo medikoo merged commit cf1692f into master May 15, 2020
@medikoo medikoo deleted the 0515-fine-tune-api-gateway-resolution branch May 15, 2020 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant