Mariusz Nowak
cc905c1e39
refactor: Remove not actual TODO comments
2022-01-12 16:33:14 +01:00
Mariusz Nowak
5a764373c4
feat(Variables): Resign from projectDir concept
2022-01-10 11:52:25 +01:00
Mariusz Nowak
365a7f13af
refactor(Variables): Support custom sources in internal resolver
2021-12-20 17:54:26 +01:00
Omer Shacham
503c0319b7
fix(Variables): Provide opt-out from forced decryption atssm source
...
(PR #10315 )
2021-12-08 12:39:47 +01:00
Mariusz Nowak
63d54e1537
fix(Variables): Resolve variables in resolved address & params values
2021-12-02 11:51:08 +01:00
Mariusz Nowak
9c75044fd5
refactor(Variables): Seclude internal logic for reuse
2021-12-02 11:51:08 +01:00
Mariusz Nowak
c0f8459680
refactor(Variables): Cleanup logic
2021-12-02 11:51:08 +01:00
Piotr Grzesik
723927f2dc
feat(Variables): Recognize : in address to support output source
2021-11-08 16:55:03 +01:00
Sudipto Das
f431218790
refactor: Replace fse.readFile with fs.promises.readFile ( #9935 )
2021-09-10 12:00:44 +02:00
Mariusz Nowak
bbb6c6cd7d
feat(CLI): Enable env variables in provider.stage property
2021-08-31 10:02:47 +02:00
Mariusz Nowak
56e9423cd7
refactor(Variables): Enable early sls:stage resolution
2021-08-27 14:54:15 +02:00
Mariusz Nowak
b7f4e08661
fix(Variables): Unconditionally deprecate old vars engine extensions
2021-08-11 15:25:58 +02:00
Piotr Grzesik
60d729b5d4
feat(Telemetry): Detect used variable sources
2021-07-28 13:18:31 +02:00
Shane R. Spencer
612f668c93
feat(Variables): Accept case-insensitive strings in strToBool ( #9770 )
...
* Lowercase stringValue to allow for wider range of inputs.
This change simply adds toLowerCase() when assigning stringValue to allow enable a case-insensitive input (True, TRUE, False, False)
* Update variables.md
Added documentation showing lowercase change to strToBool
* Update str-to-bool.test.js
Added uppercase/mixedcase test
* Update str-to-bool.test.js
fixed test description for str-to-bool case checks
* fix linting/prettier issues with strToBool test/func patch
2021-07-27 13:53:58 +02:00
Mariusz Nowak
8c741d1d97
fix(Variables): In ssm source auto parse only object JSON notation
2021-07-15 11:20:13 +02:00
Mariusz Nowak
5b54ed2e26
refactor: Drop old variables engine related deprecation
...
Old variables engine will be removed with next major, so there's no point to communicate breaking changes that were supposed to introduced if it was to stay
2021-07-06 12:03:51 +02:00
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