Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:16
    github-actions[bot] closed #3432
  • 00:16
    github-actions[bot] labeled #3432
  • 00:16
    github-actions[bot] unlabeled #3432
  • Sep 24 00:16
    github-actions[bot] labeled #1624
  • Sep 24 00:16
    github-actions[bot] commented #1624
  • Sep 23 21:38

    trivikr on master

    chore(deps-dev): add patch-pack… (compare)

  • Sep 23 21:38
    trivikr closed #4217
  • Sep 23 21:34
    trivikr review_requested #4217
  • Sep 23 21:34
    trivikr ready_for_review #4217
  • Sep 23 21:34
    trivikr synchronize #4217
  • Sep 23 21:33
    trivikr edited #4217
  • Sep 23 21:32
    trivikr opened #4217
  • Sep 23 21:18
    rbrt commented #3102
  • Sep 23 19:27
    brandonrobertz commented #3369
  • Sep 23 19:26
    ajredniwja labeled #4213
  • Sep 23 19:26
    ajredniwja unlabeled #4213
  • Sep 23 19:26
    ajredniwja commented #4213
  • Sep 23 19:15
    ajredniwja labeled #4214
  • Sep 23 18:28

    aws-sdk-js-automation on master

    Updates SDK to v2.1223.0 (compare)

  • Sep 23 18:28

    aws-sdk-js-automation on v2.1223.0

    (compare)

BertrandMarechal
@BertrandMarechal
Check out the putObject operation to see the ACL options https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#putObject-property
SerhiiBulakh
@SerhiiBulakh
thanks)
NotAB0t
@OmkarKillarikar

Hi folks, I want to integrate Amazon comprehend service in angular 8.
AWS recommends to use Amplify which doesn't seem to support comprehend yet (ref. https://aws-amplify.github.io/amplify-js/api/).

I tried to consume it as REST API call but docs doesn't contain that either.

A way (maybe bad) I'm trying - Trying to replicate API call made by boto3 in python using http call logs.

Please suggest me the correct way.

BertrandMarechal
@BertrandMarechal
Hey - you could include the AWS sdk js in your angular app, and call the AWS SDK comprehend methods from there ?
one ting you have to be aware of is that you would have to create a "subset" of the aws sdk library for your frontend, as the default one would be 1MB, and not quite network friendly
NotAB0t
@OmkarKillarikar
@BertrandMarechal It worked. thanks for inputs!
BertrandMarechal
@BertrandMarechal
great ! :)
SerhiiBulakh
@SerhiiBulakh
Hello guys! How can I provide ses to cognito and send users layout, could you help me please
Tom Medema
@tommedema
Hi I want to use the s3 for Javascript sdk in my react app. On the readme it says "Use Amplify for React.js" but I need to use a multipart upload because I'm uploading a media stream.
So can I just do yarn add aws-sdk-js instead?
BertrandMarechal
@BertrandMarechal
@tommedema you can, just follow AWS's guidelines on how to use the SDK in a browser, and make sure you creeate your minified version of the SDK with only the services you need (last link I posted above)
Miguel Espinoza
@purefan
as a side note, I was forced to use amplify and graphql for a frontend project, the amplify sdk is typescript sugar on top of the aws sdk, but it doesnt filter out any services, it comes with everything... so even after tree shaking and minification its a 7MB bundle, just for the amplify sdk :/
Leandro Zanol
@lzanolcastanheira
Hello everyone, I'm having trouble uploading from a Node.js backend app to S3.
The amount is around 40k files.
I'm using the upload() function and the input as { ..., Body: fs.createReadStream(filePath), ... }.
Sometimes it fails and the following errors were observed already: "InvalidPart", "NoSuchKey", and "NetworkingError: write EPIPE"
I noticed it occurs in the middle of a multipart upload process (when some bigger files get split into smaller chunks).
My first guess is that it can't recover from a retry state maybe triggered by a network oscillation (I've seen the retry callback getting called) during the multipart upload.
Any help is much appreciated, thanks!
Leandro Zanol
@lzanolcastanheira
A bug report on my previous question has been filed: aws/aws-sdk-js#3071
ankitch89
@ankitch89
Hi! I am trying to use aws-sdk in Typescript to make signed requests to ElasticSearch. If I import the sdk in Typescript fashion i.e. import AWS from 'aws-sdk';, I don't have access to AWS.Signers or AWS.HttpClient since they are not exported by the sdk https://github.com/aws/aws-sdk-js/blob/master/lib/core.d.ts I can import in JS fashion i.e. var aws = require('aws-sdk') but then I lose the type checking of typescript. Are these modules intentionally left out or is it just a miss? Any recommendations on how to proceed now?
jglhelias
@jglhelias
Hello @here. According to the CONTRIBUTING.md documentation, I'm here for talking about I would like to implement support for pagination while listing objects (version 2) in a bucket that is not yet available in the SDK. The NextContinuationToken token is missing in the data object in the listObjectsV2 callback when using the S3 client. Is there already someone working on this?
Mark Avery
@webark

so, I feel like I'm missing something obvious. I have a simple lambda setup that just does a little image manipulation, and then I"m wanting to return the new image. So I'm returning

return {
  statusCode: 200,
  headers: {
    'Content-Type': `image/${info.format}`
  },
  body: data.toString('base64'),
  isBase64Encoded: true
};

from my lambda. However, when I curl the attached gateway, I receive just the proper base64, but not a binary response, and if I try to load the image up in a browser, it fails. I am also setting the binaryMediaTypes: ['image/*'] in my proxy gateway. Am I missing something obvious here?

BertrandMarechal
@BertrandMarechal
Hi @webark - I cannot remember properly now, but there is something about either Lambda or API Gateway that does not allow binary response
it took us quite some time to figure it out in my previous place
maybe this link can help (from '17 though)
Mark Avery
@webark
@BertrandMarechal yea.. I tried that, and setup a RestApi gateway with a specific integration that has the “CONVERT_TO_BINARY” as the content handling.. but still didn’t work. Still getting..
Thu Feb 13 13:24:40 UTC 2020 : Endpoint response body before transformations: {"statusCode":200,"headers":{"Content-Type":"image/jpeg"},"body":"/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAKAAoDASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAAAQAI/8QAFRABAQAAAAAAAAAAAAAAAAAAABH/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/ANGGBJG//9k=","isBase64Encoded":true}
Thu Feb 13 13:24:40 UTC 2020 : Method response body after transformations: /9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAKAAoDASIAAhEBAxEB/8QAFgABAQEAAAAAAAAAAAAAAAAAAQAI/8QAFRABAQAAAAAAAAAAAAAAAAAAABH/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/ANGGBJG//9k=
Thu Feb 13 13:24:40 UTC 2020 : Method response headers: {Content-Type=image/jpeg, X-Amzn-Trace-Id=Root=1-5e454e17-c7a5b28ca2972c408be0c83d;Sampled=0}
BertrandMarechal
@BertrandMarechal
I am trying to find someone that might be able to help
Mark Avery
@webark
if you are able to that would be great! thanks @BertrandMarechal
BertrandMarechal
@BertrandMarechal
So
2a2fad4a-772c-4dab-aa4f-29b4f1b78f16.jpeg
There is apparently a setting on the API Gateway that lets you specify what Type you want to return
I cannot remember if it was possible to specify binary, it was quite some time ago
and I do not have the code
Mark Avery
@webark
yea. I have that set to image/*, I’ve tried changing it through the UI it image/jpeg and I still get the same thing..
:/
BertrandMarechal
@BertrandMarechal
oh ok...
well, that's how far I can help
maybe try to talk to AWS's support, they are quite fast to answer
Mark Avery
@webark
ohh thank you for reaching out!
yea, that might be what my next step is.
William Rust
@willrust

Looking for some advice on accessing Cognito user details from an AccessToken in node js.

I know that I can use CognitoIdentityServiceProvider to get what I need, but this requires using a callback. My goal is to provide the user values in an Express context, so async/callbacks aren't going to work for me.

Is my only option to manually validate the JWT access token and extract values?

BertrandMarechal
@BertrandMarechal
an Express will be a perfect place for Async / callback approach, what's the issue with it ?
I also cannot remember what the AWS AccessToken is built on, but if it uses JWT, you might be able to get some info out of it
you can check on jwt.io if it is a jwt token
William Rust
@willrust
Got it. Thanks @BertrandMarechal. I didn't realize that the context could be set using an async closure. Seems to work. Thanks!
Mark Avery
@webark
@BertrandMarechal “Head” “desk” “slam”… so I guess that CDK code creates the api gateway but it doesn’t deploy it fully? and so I had to go into the API and deploy it.. https://forums.aws.amazon.com/thread.jspa?threadID=293013 got me where I needed
BertrandMarechal
@BertrandMarechal
@webark yeah, it might just update it then. There might be a way to deploy the API after running the API Gateway creation. Glad you figured it out. Was it a bit more digging, or did you contact their support in the end ?
@willrust :thumbsup:
Mark Avery
@webark
just more digging.. searched for the string that was in the logs..
AngelineDaniel
@AngelineDaniel
Hi @ankitch89 I am running into the same issue, did you find a fix? I am fairly new to aws, do you have any typescript code samples to make requests from lambda to elastic search?