regionToFlag: function()

in gulpfile.js [308:323]


  regionToFlag: function (str) {
    // This handles the case where you have to specify the region explicitly for non-default regions
    // Look for opt-in required at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
    if (str) {
      switch (str) {
        case "af-south-1":
        case "ap-east-1":
        case "eu-south-1":
        case "me-south-1":
          return "--region " + str + " ";
        default:
          return "";
      }
    }
    return str;
  },