You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
For some core properties (e.g. provider and plugins) variables are not resolved as expected #7207
Currently variables configuration is setup as limited two-phase resolution. Where in first phase we resolve some strict set of variables (crucial for some variable resolvers), and immediately afterwards follow with all others.
What's problematic both phases happen after some configuration was already consumed (e.g. plugins loaded, package configuration copied), therefore some parts of a configuration cannot e.g. be secluded to outer files, as it won't be resolved on time (see #7203).
Probably best method would be to resolve variables with following phases:
Right after first read of config. Resolve file and self resolvers (which do not depend on other resolvers). (JS file resolvers may take some meta input, e.g. CLI params, as proposed here: Variables: Pass CLI params to JS file resolvers #4143)
Resolve env and remaining fileself resolvers (which do not depend on other resolvers)
Initialize Serverless instance with registered plugins
For each variable resolver ensure properties it depends on are fully resolved (e.g. resolvers that reach out to AWS services, demand region, profile and credentials be fully resolved for it to work)
Resolve all remaining variables
This should be achieved together with process flow refactor and will most likely mean a near complete rewrite of variables resolution logic
Other variable resolution issues that should be addressed when refactoring:
changed the title [-]For some core properties variables are not resolved as expected[/-][+]For some core properties (e.g. `provider` and `plugins`) variables are not resolved as expected[/+]on May 14, 2020
Activity
[-]Multi-phase variables resolution[/-][+]Intelligent multi-phase variables resolution[/+][-]Intelligent multi-phase variables resolution[/-][+]Improve variables resolution phases[/+][-]Improve variables resolution phases[/-][+]For some core properties variables are not resolved as expected[/+][-]For some core properties variables are not resolved as expected[/-][+]For some core properties (e.g. `provider` and `plugins`) variables are not resolved as expected[/+]medikoo commentedon Apr 12, 2021
Closing as it was addressed with #8364