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 aws_serverless config when api folder missing #1553
Conversation
Thanks for taking the time to submit this PR. Have you tried it, so it still works to deploy to AWS? |
I did try to run the Redwood AWS deploy generator, but that fails due to the api workspace being missing in the first place. I did not try manually writing an AWS deploy config and triggering that, nor did I try generating an AWS deploy config before deleting the api workspace and then triggering the deploy. It seems like neither of those would work or make sense without the existence of an api side. |
I didn't realize we only supported deploying the api side to AWS. I thought we deployed the web side to an s3 bucket as well... If it's just the API side, then, yeah, not much to test if there is no api side 😀 |
I generated aws deploy config (with the api stuff in place) and renamed the file to Want to tweak that, and then I think this is ready to merge! Just to be clear, it's indented now, and it shouldn't be. This is what it looks with this PR installed (note line 32) |
I did notice that it was indenting that line, but forgot that it would be a problem since the result is a YAML file... What's the best way to fix this? If I just try to move the |
This seems to work for me, no
|
Thanks for the fix Bennett! |
Fixes #1550
Note: The ternary in the template string isn't necessarily the cleanest looking solution, but it seems to be the simplest.