aws-cloudformation / rain

A development workflow tool for working with AWS CloudFormation.
Apache License 2.0
771 stars 69 forks source link

Format bug with Fn::GetAZs empty string #273

Closed ericzbeard closed 5 months ago

ericzbeard commented 6 months ago
  PrivateSubnet1Subnet:
    Type: AWS::EC2::Subnet
    Properties:
    AvailabilityZone: !Select [0, Fn::GetAZs: ""]
    CidrBlock: 10.0.128.0/18
    MapPublicIpOnLaunch: false
    VpcId: !Ref VPC

The empty string (which means the same as AWS::Region) is converted to null

(|) Resources:
(|)   PrivateSubnet1Subnet:
(|)     Properties:
(|)       AvailabilityZone:
(|)         Fn::Select:
(|)           [1]:
(>)             Fn::GetAZs: null