Code Monkey home page Code Monkey logo

Comments (8)

borkdude avatar borkdude commented on August 28, 2024

@eelkevanfoeken We have a script called script/update-deps.clj. I thought this would fetch all the latest stuff, but apparently it's missing something. Could you take a look there and improve the script? After that we can run it and update the pod.

from pod-babashka-aws.

borkdude avatar borkdude commented on August 28, 2024

It seems the deps.edn already contains proton:

$ less deps.edn | grep proton
        com.cognitect.aws/proton                           {:mvn/version "813.2.963.0" :aws/serviceFullName "AWS Proton"}

from pod-babashka-aws.

borkdude avatar borkdude commented on August 28, 2024

I don't think aws-lib.edn is used anywhere.

from pod-babashka-aws.

borkdude avatar borkdude commented on August 28, 2024

There is a list of keys in aws-services.edn but I don't know how that was generated. It should probably be re-generated in script/update-deps.clj but from which data?

(def services (into (sorted-set) (clojure.edn/read-string (slurp (io/resource "aws-services.edn")))))

(def *clients (atom {}))

(defn get-client [config]
  (get @*clients (get config ::client-id)))

(defn -client [{:keys [api] :as config}]
  (if-not (contains? services api)
    (throw (ex-info (str "api " api " not available") {:available services}))
    (let [config (assoc config
                        :http-client @http-client)
          client (aws/client config)
          client-id (java.util.UUID/randomUUID)]
      (swap! *clients assoc client-id client)
      {::client-id client-id})))

This list and above check was put here by @jeroenvandijk so hopefully he can enlighten us :).

from pod-babashka-aws.

jeroenvandijk avatar jeroenvandijk commented on August 28, 2024

@borkdude I've created a PR with some explaination #50

from pod-babashka-aws.

borkdude avatar borkdude commented on August 28, 2024

Thanks a lot! I'll release a new version.

from pod-babashka-aws.

borkdude avatar borkdude commented on August 28, 2024

Released to the pod registry.

from pod-babashka-aws.

eelkevanfoeken avatar eelkevanfoeken commented on August 28, 2024

Thank you @jeroenvandijk and @borkdude

from pod-babashka-aws.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.