src/vpc.js
function buildRouteTableAssociation(name, position) {
  const cfName = `${name}RouteTableAssociation${position}`;
  return {
    [cfName]: {
      Type: 'AWS::EC2::SubnetRouteTableAssociation',
      Properties: {
        RouteTableId: {
          Ref: `${name}RouteTable${position}`,
        },
        SubnetId: {
          Ref: `${name}Subnet${position}`,
        },
      },
    },
  };
}
function buildRouteTableAssociation(name, position) {
  const cfName = `${name}RouteTableAssociation${position}`;
  return {
    [cfName]: {
      Type: 'AWS::EC2::SubnetRouteTableAssociation',
      Properties: {
        RouteTableId: {
          Ref: `${name}RouteTable${position}`,
        },
        SubnetId: {
          Ref: `${name}Subnet${position}`,
        },
      },
    },
  };
}
function buildRouteTableAssociation ( name , position ) { const cfName = ` ${ name } ${ position } ` ; return { [ cfName ] : { Type : 'AWS::EC2::SubnetRouteTableAssociation' , Properties : { RouteTableId : { Ref : ` ${ name } ${ position } ` , } , SubnetId : { Ref : ` ${ name } ${ position } ` , } , } , } , } ; }
Build a RouteTableAssociation

@param {String} name
@param {Number} position
@return {Object}
Build a RouteTableAssociation