def getAMIs()

in app/prism/Prism.scala [45:59]


  def getAMIs()(implicit
      config: AMIableConfig,
      ec: ExecutionContext
  ): Attempt[List[AMI]] = {
    val url = amisUrl(config.prismUrl)
    for {
      response <- Http.response(
        config.wsClient.url(url).get(),
        "Unable to fetch AMIs",
        url
      )
      jsons <- amisResponseJson(response)
      amis <- Attempt.sequence(jsons.map(extractAMI))
    } yield amis
  }