private def loadConfig()

in src/main/scala/com/gu/contentapi/Config.scala [25:32]


  private def loadConfig() = {
    val bucketName = "content-api-config"
    val configFileKey = s"most-viewed-video-uploader/$stage/config.properties"
    val configInputStream = s3Client.getObject(bucketName, configFileKey).getObjectContent
    val configFile: Properties = new Properties()
    Try(configFile.load(configInputStream)) orElse sys.error("Could not load config file from s3. This lambda will not run.")
    configFile
  }