github.com/openshift/installer@v1.4.17/upi/aws/cloudformation/01.99_net_local-zone.yaml (about)

     1  AWSTemplateFormatVersion: 2010-09-09
     2  Description: Template for create Public Local Zone subnets
     3  
     4  Parameters:
     5    VpcId:
     6      Description: VPC Id
     7      Type: String
     8    ZoneName:
     9      Description: Local Zone Name (Example us-west-2-lax-1a)
    10      Type: String
    11    SubnetName:
    12      Description: Local Zone Name (Example cluster-usw2-lax-1a)
    13      Type: String
    14    PublicRouteTableId:
    15      Description: Public Route Table ID to associate the Local Zone subnet
    16      Type: String
    17    PublicSubnetCidr:
    18      # yamllint disable-line rule:line-length
    19      AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/(1[6-9]|2[0-4]))$
    20      ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/16-24.
    21      Default: 10.0.128.0/20
    22      Description: CIDR block for Public Subnet
    23      Type: String
    24  
    25  Resources:
    26    PublicSubnet:
    27      Type: "AWS::EC2::Subnet"
    28      Properties:
    29        VpcId: !Ref VpcId
    30        CidrBlock: !Ref PublicSubnetCidr
    31        AvailabilityZone: !Ref ZoneName
    32        Tags:
    33        - Key: Name
    34          Value: !Ref SubnetName
    35        - Key: kubernetes.io/cluster/unmanaged
    36          Value: "true"
    37  
    38    PublicSubnetRouteTableAssociation:
    39      Type: "AWS::EC2::SubnetRouteTableAssociation"
    40      Properties:
    41        SubnetId: !Ref PublicSubnet
    42        RouteTableId: !Ref PublicRouteTableId
    43  
    44  Outputs:
    45    PublicSubnetIds:
    46      Description: Subnet IDs of the public subnets.
    47      Value:
    48        !Join ["", [!Ref PublicSubnet]]