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:
武田隆志 authored and GitHub committed 2026-07-02 23:16:04 -05:00
1 parent 8b39ead1a4
commit 8366ac256a
2 files changed
+48

No files matched your search

@@ -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));