Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 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


  • 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


  • 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
Leandro Zanol
A bug report on my previous question has been filed: aws/aws-sdk-js#3071
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?
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

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?

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
@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 : Method response headers: {Content-Type=image/jpeg, X-Amzn-Trace-Id=Root=1-5e454e17-c7a5b28ca2972c408be0c83d;Sampled=0}
I am trying to find someone that might be able to help
Mark Avery
if you are able to that would be great! thanks @BertrandMarechal
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
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..
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
ohh thank you for reaching out!
yea, that might be what my next step is.
William Rust

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?

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
Got it. Thanks @BertrandMarechal. I didn't realize that the context could be set using an async closure. Seems to work. Thanks!
Mark Avery
@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
@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
just more digging.. searched for the string that was in the logs..
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?
hey, I'm quite new in the JS side of AWS. Does anybody know if there is a plan to release modular SDK?
hello. can anyone help with exposing a port for an ec2 instance?
@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
I'm getting an ExpiredToken exception while trying to upload object to S3 - using sdk v2
any ideas how to resolve this
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
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

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

The "Event Pattern" is just { "account" : [myAccount] }
The event bus is the event bus I am using for putEvents()
And the target is the lambda I just created
But nothing is logged
Status says "Enabled"
I'm using this to test,
        Entries : [
                Source : "some.source",
                DetailType : "EventBridgeTest",
                Detail : JSON.stringify({ hello : "world" }),
                EventBusName : "some-event-bus",
                Time : new Date(),
Hi guys, I am trying to upload a file to S3 using s3.createPresignedPost... this is so incredibly frustrating. Been on it for hours and hours and can't get past <Code>AccessDenied</Code> <Message>No AWSAccessKey was presented.</Message>