Fork me on GitHub
#portkey
<
2017-09-06
>
viesti06:09:57

in a way that doesn’t end up into “Why I have to do all of this” 🙂

tatut07:09:49

is aws-clj-sdk in a usable state? are there codox generated docs available

cgrand09:09:02

yesterday I got the 1st api call through but haven’t pushed yet and most APIs are not generated yett

cgrand09:09:38

and I haven’t inlined docs yet

tatut09:09:26

so, soon… how can I help?

cgrand09:09:34

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)

viesti09:09:56

oops, meant for private chat 🙂

viesti09:09:13

apropos, what about the post support for portkey, I guess we’d need that for the demo next week

cgrand09:09:49

no you need it 😉

cgrand09:09:34
replied to a thread:so, soon… how can I help?

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)

cgrand09:09:31

@viesti what’s the current state of your work towards POST? any blockers or doubt?

viesti09:09:42

blocked but saw some light yesterday while watching basketball (long story)

viesti09:09:52

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

viesti09:09:05

then passing single input param for :post

viesti09:09:11

don’t yet have idea for ring

cgrand09:09:09

@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

cgrand09:09:09

@viesti get the proxy to work and I’ll guide you with ring

tatut09:09:33

I’ll try it out some day, the endpoint seems straight forward, but don’t hold your breath

cgrand12:09:53

I’ve done it

viesti09:09:40

> AWS_DEFAULT_REGION – AWS region. This variable overrides the default region of the in-use profile, if set.

viesti09:09:19

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

cgrand09:09:47

compat with env & credentials would be great

tatut10:09:02

route53 seems to be rest-xml, not rest-json so defapi fails for it, in my test

viesti10:09:53

the xml age

cgrand10:09:05

I even have removed defapi locally

cgrand10:09:49

but yeah focusing on rest-json atm

cgrand10:09:55

one protocol after the other

cgrand11:09:16

totally untested but generation of rest-json api is ok

cgrand11:09:09

oh and all endpoints are wrong since hardcoded to lambda/frankfurt

cgrand14:09:22

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” }