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
…pected (#263)
First part of #49
---
- Adds proper JsonSchema for Intrinsics
- Test suite for AST support (which was already there)
- One fix for AST and evaluation of Join/Select intrinsics
---
Coming in a follow-up:
- Test suite for evaluation
- Context for intrinsics
Currently, trying to use an intrinsic function in most places where a specific value is expected (such as a string) results in an error:
which produces the following error:
Instead, it should generate the equivalent function in the core API (https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Fn.html).
This should support using both the "long form" (e.g.
Fn::Sub
) and "short form" (e.g.!Sub
-- only available in YAML) of each intrinsic function. These are documented on the pages about intrinsic functions: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.htmlNote: in some rare cases it does work, but I think it's just because CDK doesn't check the values passed to
environment
:For the implementation, consider checking out these related PRs in the AWS CDK:
@aws-cdk/yaml-cfn
aws/aws-cdk#14001Split out to #270
Also, trying to reference one of the "short forms" in a template immediately causes an error during parsing:The text was updated successfully, but these errors were encountered: