Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:21
    github-actions[bot] labeled #3904
  • 00:21
    github-actions[bot] commented #3904
  • 00:21
    github-actions[bot] labeled #3872
  • 00:21
    github-actions[bot] commented #3872
  • 00:20
    github-actions[bot] unlabeled #3652
  • Sep 30 20:03
    jrdnull commented #1436
  • Sep 30 18:24

    aws-sdk-js-automation on master

    Updates SDK to v2.1227.0 (compare)

  • Sep 30 18:24

    aws-sdk-js-automation on v2.1227.0

    (compare)

  • Sep 30 09:48
    Burgov commented #4123
  • Sep 30 06:48
    tjunnone commented #3652
  • Sep 30 00:22
    github-actions[bot] unlabeled #3627
  • Sep 29 18:24

    aws-sdk-js-automation on master

    Updates SDK to v2.1226.0 (compare)

  • Sep 29 18:24

    aws-sdk-js-automation on v2.1226.0

    (compare)

  • Sep 29 07:22
    danielrive commented #3647
  • Sep 29 04:31
    Nevon commented #3627
  • Sep 29 00:21
    github-actions[bot] labeled #4213
  • Sep 29 00:21
    github-actions[bot] commented #4213
  • Sep 29 00:21
    github-actions[bot] unlabeled #4212
  • Sep 29 00:21
    github-actions[bot] labeled #3652
  • Sep 29 00:21
    github-actions[bot] commented #3652
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?
imre.turi
@Binjaaa
hey, I'm quite new in the JS side of AWS. Does anybody know if there is a plan to release modular SDK?
imre.turi
@Binjaaa
Choongkyu
@Choongkyu
hello. can anyone help with exposing a port for an ec2 instance?
Ghost
@ghost~5e415112d73408ce4fd93175
@zebralight You need to add a security group on EC2 instance and mention the port which you want to expose in inbound rules. In case you want to connect to your application Just make sure the port should be same as on which you are running the web application. If you face any problem do let me know, I will help you out.
Anish Shah
@anish_metrik_gitlab
I'm getting an ExpiredToken exception while trying to upload object to S3 - using sdk v2
any ideas how to resolve this
pimvdberg
@pimftw
Hi im trying to mock AWS services using, aws-sdk-mock. I ge the error: Missing region in config. It has something to do with the initialise of the client. I can not figure out whats wrong.
Ronique Ricketts
@RoniqueRicketts
I am currently working on an app and I am getting this error Cannot find module '/codebuild/output/src599470665/src/KAMS/node_modules/gulp/bin/gulp.js when I try to build the app in aws amplify
AnyhowStep
@AnyhowStep

I can't seem to get EventBridge rules to work.

I created a hello world lambda that just logs the event.
When testing the event, the CloudWatch logs display the logged event.

When I try to putEvents(), I get a success response with the event id.

So, the only thing that I can think of that should be broken is my rule