src/vpc.js
function buildRouteTable(name, position, zone) {
  const cfName = `${name}RouteTable${position}`;
  return {
    [cfName]: {
      Type: 'AWS::EC2::RouteTable',
      Properties: {
        VpcId: {
          Ref: 'VPC',
        },
        Tags: [
          {
            Key: 'Name',
            Value: {
              'Fn::Join': [
                '-',
                [
                  {
                    Ref: 'AWS::StackName',
                  },
                  name.toLowerCase(),
                  zone,
                ],
              ],
            },
          },
        ],
      },
    },
  };
}
function buildRouteTable(name, position, zone) {
  const cfName = `${name}RouteTable${position}`;
  return {
    [cfName]: {
      Type: 'AWS::EC2::RouteTable',
      Properties: {
        VpcId: {
          Ref: 'VPC',
        },
        Tags: [
          {
            Key: 'Name',
            Value: {
              'Fn::Join': [
                '-',
                [
                  {
                    Ref: 'AWS::StackName',
                  },
                  name.toLowerCase(),
                  zone,
                ],
              ],
            },
          },
        ],
      },
    },
  };
}
function buildRouteTable ( name , position , zone ) { const cfName = ` ${ name } ${ position } ` ; return { [ cfName ] : { Type : 'AWS::EC2::RouteTable' , Properties : { VpcId : { Ref : 'VPC' , } , Tags : [ { Key : 'Name' , Value : { 'Fn::Join' : [ '-' , [ { Ref : 'AWS::StackName' , } , name . toLowerCase ( ) , zone , ] , ] , } , } , ] , } , } , } ; }
Build a RouteTable in a given AZ

@param {String} name
@param {Number} position
@param {String} zone
@return {Object}
Build a RouteTable in a given AZ