-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Using variablesResolutionMode: 20210219
prevents loading external configuration files outside of service folder
#9141
Labels
Comments
laurynas-karvelis
changed the title
Using
Using Mar 18, 2021
variablesResolutionMode: 20210219
prevents loading external configuration files outside of servie foldervariablesResolutionMode: 20210219
prevents loading external configuration files outside of service folder
@laurynas-karvelis great thanks for report! Can we consider this as duplicate of #9095 ? |
By looking at the ticket you linked it is indeed the same issue. Thanks for such quick response @medikoo! |
Thanks for confirmation. I'm closing this as duplicate then |
This was referenced Mar 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
First of all I wanted to thank everyone involved creating such a great tool!
After upgrading to the latest serverless version
2.30.3
and applyingvariablesResolutionMode: 20210219
to serviceserverless.yml
in preparation forserverless@v3
causesserverless offline
andserverless deploy
invocations to throw following error(s) when trying to load configuration files sourced outside serverless main service folder:Loading complementary config files from outside service folder usually is very helpful way for developers who maintain mono repos that contain number of individual serverless services where all or some share common configuration values used across the project. Preventing such possibility introduces unnecessary config duplication and unwanted future misconfigurations due to configs being out of sync.
I searched your repository for this error and found a check that causes this error here:
serverless/lib/configuration/variables/sources/file.js
Lines 40 to 45 in 68de8bd
serverless.yml
//node_modules/.bin/serverless offline
outputInstalled version
The text was updated successfully, but these errors were encountered: