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

Added stack search in Nested Stacks #235

Merged

Conversation

Katafalkas
Copy link
Contributor

@Katafalkas Katafalkas commented Jun 24, 2019

Fixes #209

Description of Issue Fixed
getRestApiId() would not find restApiId if CloudFormation Nested Stacks are used.

Changes proposed in this pull request:

  • Search for stack match in all stacks

Code used as reference: #209 (comment)

@Katafalkas Katafalkas force-pushed the feature/support-nested-stacks branch 2 times, most recently from 25ab9a9 to f6fabf8 Compare June 24, 2019 15:31
@Katafalkas
Copy link
Contributor Author

Maybe there should be an option useNestedStacks ?

@codetheweb
Copy link

Hey @captainsidd any update on this?

We're currently running into the issue this PR fixes.

@wizardishungry
Copy link

Yea, I'm eagerly waiting on this to merge!

@logiclord
Copy link

would love to see this request through

@vodlogic
Copy link

We would also love this PR to be merged as soon as possible

@Katafalkas Katafalkas force-pushed the feature/support-nested-stacks branch from 96e4ff9 to f1a8a66 Compare August 17, 2019 07:28
@Katafalkas
Copy link
Contributor Author

while this PR is not merged - you can try using my branch. Leave comments what could be improved.

"serverless-domain-manager": "Katafalkas/serverless-domain-manager#with-js-artifact"

@vodlogic
Copy link

while this PR is not merged - you can try using my branch. Leave comments what could be improved.

"serverless-domain-manager": "Katafalkas/serverless-domain-manager#with-js-artifact"

This PR works fine for our use case. I did see errors with serverless-certificate-creator not being able to find the nested stacks but this did not seem to affect anything and obviously a different bug entirely. Great that you have added support for large number of nested stacks aswell. I have not specifically tested this works - we had 20 stacks in our account at the time.

Would be great if this PR can be approved and merged soon.

@Katafalkas
Copy link
Contributor Author

while this PR is not merged - you can try using my branch. Leave comments what could be improved.
"serverless-domain-manager": "Katafalkas/serverless-domain-manager#with-js-artifact"

This PR works fine for our use case. I did see errors with serverless-certificate-creator not being able to find the nested stacks but this did not seem to affect anything and obviously a different bug entirely. Great that you have added support for large number of nested stacks aswell. I have not specifically tested this works - we had 20 stacks in our account at the time.

Would be great if this PR can be approved and merged soon.

Will update the code to remove the error.

@webhacking
Copy link

@Katafalkas It works great. thx bro

@Katafalkas
Copy link
Contributor Author

If you use serverless 1.55.0 version and try installing this plugin via npm my github branch, serverless will not import it. Can not figure our why. Waiting for response to my ticket.

serverless/serverless#6884

A workaround - move plugin to .serverless_plugins - hacky, but works for now.

@vodlogic
Copy link

vodlogic commented Nov 7, 2019

If you use your with-js-artifact branch it seems to work on serverless 1.56.1

@russell-dot-js
Copy link

If you use serverless 1.55.0 version and try installing this plugin via npm my github branch, serverless will not import it. Can not figure our why. Waiting for response to my ticket.

serverless/serverless#6884

A workaround - move plugin to .serverless_plugins - hacky, but works for now.

I got it working by adding a postinstall script:
"postinstall": "cd node_modules/serverless-domain-manager && npm ci && npm run build"

@russell-dot-js
Copy link

Can we get this merged though? This is a great fix for a common issue - API gateway takes a ton of resources, so splitting the stacks is pretty common

@sonarcloud
Copy link

sonarcloud bot commented Feb 17, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Katafalkas
Copy link
Contributor Author

Updated code. Did a rebase on #313

"serverless-domain-manager": "Katafalkas/serverless-domain-manager#working-artifacts-2020-02-17"

@russell-dot-js
Copy link

FWIW, this PR has been open for almost a year, with multiple consumers testing in production and no complaints... what's a dev gotta do to get his PR merged around here? I can't imagine this is very rewarding for @Katafalkas to put his time into maintaining this library only for crickets from the repository admins.

I am in OC with amplify-education, should I deliver donuts?

@aoskotsky-amplify
Copy link
Member

Hey. Sorry for the long delay in reviewing this PR/getting it merged. We'll review this one next once the merge conflicts are resolved and try to get it merged ASAP.

@nilsdebruin
Copy link

It would be nice if this pull request could be merged; avoiding nested stacks is better, but sometimes you have to go with them...

@rddimon rddimon merged commit f356f5a into amplify-education:master Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Failed to find CloudFormation resources for <domain name>
10 participants