This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-06
Channels
- # beginners (147)
- # boot (12)
- # chestnut (12)
- # cider (22)
- # clara (10)
- # cljs-dev (6)
- # cljs-experience (3)
- # cljsrn (12)
- # clojure (58)
- # clojure-austin (3)
- # clojure-dusseldorf (25)
- # clojure-finland (20)
- # clojure-gamedev (1)
- # clojure-greece (3)
- # clojure-italy (32)
- # clojure-new-zealand (5)
- # clojure-russia (12)
- # clojure-serbia (1)
- # clojure-spec (4)
- # clojure-uk (51)
- # clojurescript (75)
- # cursive (8)
- # datomic (81)
- # fulcro (29)
- # graphql (16)
- # heroku (6)
- # incanter (1)
- # keechma (1)
- # lumo (44)
- # off-topic (21)
- # onyx (22)
- # parinfer (5)
- # portkey (40)
- # re-frame (43)
- # reagent (5)
- # spacemacs (37)
- # specter (8)
- # unrepl (3)
yesterday I got the 1st api call through but haven’t pushed yet and most APIs are not generated yett
enumerate the API you want to use and check what are their protocols (look in “metadata/protocol” of “api-2.json” files found there https://github.com/portkey-cloud/aws-clj-sdk/tree/master/resources/aws-sdk-core/apis)
apropos, what about the post support for portkey, I guess we’d need that for the demo next week
enumerate the API you want to use and check what are their protocols (look in “metadata/protocol” of “api-2.json” files found there https://github.com/portkey-cloud/aws-clj-sdk/tree/master/resources/aws-sdk-core/apis)
if I have time to try the proxy approach I think that at first I’d make it work by passing :get params to function as now
@tatut a required task which is independent enough is: computing the endpoint. Data live there https://github.com/aws/aws-sdk-java/blob/master/aws-java-sdk-core/src/main/resources/com/amazonaws/partitions/endpoints.json (missing from the repo at the moment) and mimicking aws-sdk-java logic would be a good start
I’ll try it out some day, the endpoint seems straight forward, but don’t hold your breath
> AWS_DEFAULT_REGION – AWS region. This variable overrides the default region of the in-use profile, if set.
and profiles are in ~/.aws/credentials
, say region=eu-west-1
under the ini file sections, from which [default]
is used by default if present, otherwise one that matches AWS_PROFILE
environment variable if present
anyway it looks like this https://github.com/portkey-cloud/aws-clj-sdk/blob/master/src/portkey/aws/lambda.clj
Step #4 and #5 sounds complex to emulate http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html
Step #4 is not that hard: From inside the container, you can query the credentials with the following command: Copy [ec2-user ~]$ curl 169.254.170.2$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI Output: { “AccessKeyId”: “ACCESS_KEY_ID”, “Expiration”: “EXPIRATION_DATE”, “RoleArn”: “TASK_ROLE_ARN”, “SecretAccessKey”: “SECRET_ACCESS_KEY”, “Token”: “SECURITY_TOKEN_STRING” }