mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(cloudformation): register !Cidr and !GetAZs shorthand YAML tags (#1635)
The Fn::Cidr and Fn::GetAZs intrinsics were added in #1365, but their YAML shorthand tags (!Cidr, !GetAZs) were never registered in CloudFormationYamlParser. Templates using the shorthand fail to parse with "could not determine a constructor for the tag !Cidr", while the long form (Fn::Cidr / Fn::GetAZs) works. Register the two missing tags alongside the other intrinsic shorthands so both forms behave identically.
This commit is contained in:
2 files changed
+48
No files matched your search
+2
@@ -56,6 +56,8 @@ public class CloudFormationYamlParser {
|
||||
register("!Base64", n -> fnMap("Fn::Base64", n));
|
||||
register("!FindInMap", n -> fnMap("Fn::FindInMap", n));
|
||||
register("!Split", n -> fnMap("Fn::Split", n));
|
||||
register("!Cidr", n -> fnMap("Fn::Cidr", n));
|
||||
register("!GetAZs", n -> fnMap("Fn::GetAZs", n));
|
||||
register("!ImportValue",n -> fnMap("Fn::ImportValue", n));
|
||||
register("!Condition", n -> scalarMap("Condition", scalar(n)));
|
||||
register("!And", n -> fnMap("Fn::And", n));
|
||||
|
||||
Reference in new issue
Block a user