aws-cloudformation / rain

A development workflow tool for working with AWS CloudFormation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Format bug with Fn::GetAZs empty string

ericzbeard opened this issue · comments

  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