This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-13
Channels
- # adventofcode (84)
- # aleph (1)
- # announcements (2)
- # aws (27)
- # beginners (52)
- # braveandtrue (2)
- # calva (440)
- # cider (7)
- # clara (2)
- # cljdoc (26)
- # cljs-dev (70)
- # clojure (131)
- # clojure-berlin (4)
- # clojure-brasil (1)
- # clojure-europe (2)
- # clojure-greece (4)
- # clojure-hamburg (1)
- # clojure-italy (4)
- # clojure-losangeles (6)
- # clojure-nl (14)
- # clojure-spec (7)
- # clojure-uk (25)
- # clojurescript (26)
- # component (2)
- # cursive (13)
- # datomic (60)
- # dirac (59)
- # docker (1)
- # figwheel (1)
- # figwheel-main (2)
- # fulcro (12)
- # graphql (5)
- # juxt (33)
- # leiningen (19)
- # nrepl (1)
- # off-topic (37)
- # protorepl (2)
- # re-frame (18)
- # reagent (46)
- # remote-jobs (1)
- # ring-swagger (1)
- # shadow-cljs (88)
- # sql (10)
- # tools-deps (64)
- # vim (24)
hi! I’m trying out cognitect.aws.credentials and cognitect.aws.client.api for the first time. I think I’ve constructed my creds map properly, but I get a stacktrace when I attempt to create the client:
(type (credentials/basic-credentials-provider creds)) => cognitect.aws.credentials$basic_credentials_provider$reify__15156
(def client (aws/client {:api :ec2
:credentials-provider (credentials/basic-credentials-provider creds)
}))
Syntax error (ExceptionInfo) compiling at (REPL:31:13).
Cannot find resource cognitect/aws/ec2/service.edn.
Please lmk how to remedy?Looks like maybe you don’t have the ec2 jar in your deps?
You should have at least 3 deps - api, endpoints, and whatever service(s) you’re hitting
Hi Alex, I have the api and endpoints resolving well. Could you give me a hint as to the correct way to specify the ec2 service?
sorry, I’m not an expert on ec2 - if you have something that isn’t working, you could post the code as an issue on the aws repo though
well please log so David or someone else can take a look
btw, I was literally just following https://github.com/cognitect-labs/aws-api/blob/master/examples/ec2_examples.clj
To use s3 I had to bring this into my project.clj [com.cognitect.aws/s3 “680.2.370.0”]
Does adding [com.cognitect.aws/ec2 “681.2.373.0”] make this work for you?
You might also have to provide region as well, if your creds/region aren’t configured in your environment.
(aws/client {:api :ec2, :region "us-east-1", :credentials-provider (basic-credentials-provider {:access-key-id "" :secret-access-key ""})})