KIDANI Akito
f16c45f84b
refactor(CLI): Fix typo in error message ( #9682 )
2021-07-02 13:31:53 +02:00
Piotr Grzesik
33794ea504
feat(Variables): Support aws:region and aws:accountId variables
2021-06-30 13:02:59 +02:00
Mariusz Nowak
80b76406ac
feat(Variables): Support variables across file address resolution
2021-06-29 17:37:11 +02:00
Mariusz Nowak
0e3db01db8
feat(Variables): Resolve vars in strings which are subject to be joined
2021-06-29 17:37:11 +02:00
Mariusz Nowak
ac7efb1b7b
refactor(Variables): Remove redundancy
2021-06-29 17:37:11 +02:00
Mariusz Nowak
4a732e2ebf
refactor(Variables): Improve error message
2021-06-14 13:28:33 +02:00
Mariusz Nowak
f61859fd25
fix(Variables): Strip unrecognized legacy instructions
2021-06-14 13:28:33 +02:00
Mariusz Nowak
8dbb56ecbd
feat(Variables): Allow to reference files in scope of project directory
2021-06-08 10:22:19 +02:00
Mariusz Nowak
bb3b766946
fix(Variables): Unify error messaging for function resolvers
2021-06-02 16:17:15 +02:00
Mariusz Nowak
6efc161e5f
refactor(Variables): Seclude resolution of sources from external plugins
2021-06-02 15:17:06 +02:00
Piotr Grzesik
ee66585fdc
fix(Variables): Ensure proper resolution in case of errors
2021-05-25 12:04:26 +02:00
Mariusz Nowak
c563581ac9
refactor: Construct user errors with ServerlessError
2021-05-19 13:16:42 +02:00
Mariusz Nowak
a8f4aebe5d
fix(Variables): Ensure report user error as user error
2021-05-19 13:16:42 +02:00
Mariusz Nowak
f6b7cfaaaf
fix(Variables): Fix reporting of variable resolution errors
2021-05-14 13:42:54 +02:00
Mariusz Nowak
2ff58b16bf
feat(Variables): Expose variable resolver function to variable sources
2021-04-27 13:48:57 +02:00
Mariusz Nowak
102d0bafe6
refactor(Variables): Fix inline comment typo
2021-04-27 13:48:57 +02:00
Piotr Grzesik
8c37e0ac6d
refactor: Adjust invalid code for ServerlessError
2021-04-23 13:34:20 +02:00
Piotr Grzesik
395bdc8b23
refactor: Add code to ServerlessError in lib/configuration
2021-04-23 13:34:20 +02:00
Mariusz Nowak
53a7872f78
fix(Variables): Fix unresolved sources resolver
2021-04-23 10:22:48 +02:00
Matthieu Napoli
ef91ae1972
feat(Variables): sls:stage variable ( #9296 )
...
A shortcut to
```
${opt:stage, self:provider.stage, "dev"}
```
2021-04-20 15:37:57 +02:00
Mariusz Nowak
c63244ce96
fix(Variables): Clear escape slashes
...
New variables engine supports escape syntax (so e.g. "\${foo:}" was not recognized as variable notation.
Still there was no logic that would clear "\" characters. This patch fixes that
2021-04-20 10:28:06 +02:00
Mariusz Nowak
712a569d52
feat(Variables): serviceDir option as replacement for servicePath
...
Support for `servicePath` is maintained until next major
2021-04-16 13:32:13 +02:00
Mariusz Nowak
6dd39968f2
fix(Variables): Fix file access error message generation
2021-04-09 16:10:21 +02:00
Mariusz Nowak
a2f1808b2f
refactor(Variables): Testing purpose variable resolution util
2021-04-09 16:10:21 +02:00
Adam Pancutt
88baf06b42
fix: Avoid re-registration of ts-node ( #9254 )
2021-04-07 14:09:53 +02:00
Mariusz Nowak
dae9058501
fix(CLI): Ensure help output with missing provider.name
2021-04-06 12:47:08 +02:00
Mariusz Nowak
83cac533a3
fix(Variables): Ensure valid region value type in SSM resolution
2021-04-03 09:55:26 +02:00
Mariusz Nowak
4eba512c15
fix(Variables): Support resolving "raw" JSON string form of SSM params
2021-04-02 12:03:29 +02:00
Mariusz Nowak
089405a7a8
refactor(Variables): Improve error message grammar
2021-03-30 10:22:40 +02:00
Mariusz Nowak
3f7f67ccc1
refactor(Variables): Configure ssm source in a new resolver
2021-03-30 10:22:40 +02:00
Mariusz Nowak
12a4cad102
refactor(Variables): Configure s3 source in a new resolver
2021-03-30 10:22:40 +02:00
Mariusz Nowak
a60e90f61c
refactor(Variables): Configure cf source in a new resolver
2021-03-30 10:22:40 +02:00
Mariusz Nowak
eecd9285d5
refactor(Variables): Configure sls source in a new resolver
2021-03-30 10:22:40 +02:00
Mariusz Nowak
13610cf0f0
refactor(Variables): Recognize only defined CLI options in resolver
2021-03-22 15:31:17 +01:00
Mariusz Nowak
6c6ada93e4
fix(Variables): Fix resolution of "false" CLI params
2021-03-22 15:31:17 +01:00
Mariusz Nowak
9ab04a6747
refactor(CLI): Proritize provider.name validation
2021-03-22 15:31:17 +01:00
Mariusz Nowak
cfe83df174
refactor(Variables): Smarter "is property resolved" validation
2021-03-22 15:31:17 +01:00
Mariusz Nowak
b21dc44048
fix(Variables): Unify handling of not existing addresses
2021-03-22 13:32:37 +01:00
Mariusz Nowak
32ba7c8b43
fix(Variables): Ensure to support middle JS function resolved properties
2021-03-22 13:32:37 +01:00
Mariusz Nowak
a537856651
refactor(Variables): Smarter resolution phases
2021-03-18 14:36:18 +01:00
Mariusz Nowak
54da2c23a1
refactor(Variables): Ensure to not resolve any value with promise
2021-03-18 14:36:18 +01:00
Mariusz Nowak
a867515bc0
refactor(Variables): Simply Array.from operation
2021-03-18 14:36:18 +01:00
Mariusz Nowak
a48117041c
refactor(CLI): Integrate isHelpRequest into resolveInput util
2021-03-18 14:36:18 +01:00
Mariusz Nowak
68de8bdeed
fix(Variables): Retry JS function resolvers on unresolved dependencies
2021-03-15 13:27:20 +01:00
Mariusz Nowak
5e2406bea7
fix(Variables): Expose source resolution errors as non-user errors
2021-03-09 12:05:59 +01:00
Mariusz Nowak
524c43df75
refactor(Variables): Improve source fulfillment handling
2021-03-09 12:05:59 +01:00
Mariusz Nowak
b90538af08
refactor(Variables): Improve error message related to JS func resolver
2021-03-05 16:20:25 +01:00
Mariusz Nowak
68f326e79f
fix(Variables): Ensure to not share property cache across resolutions
2021-03-03 10:13:32 +01:00
Mariusz Nowak
21ac1beb22
fix(Variables): Recognize hyphens in types
...
It's to recognize notation as "cf.us-east-1:.."
2021-03-02 22:47:32 +01:00
Mariusz Nowak
df627394b3
fix(Variables): Ensure proper error handling for resolved value parsing
2021-03-02 22:47:32 +01:00