Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 18:24

    aws-sdk-js-automation on master

    Updates SDK to v2.1190.0 (compare)

  • 18:24

    aws-sdk-js-automation on v2.1190.0


  • 17:28
    ekrausso commented #4165
  • 16:54
    ajredniwja unlabeled #4151
  • 16:54
    ajredniwja labeled #4151
  • 16:54
    ajredniwja commented #4151
  • 16:35
    ajredniwja unlabeled #4165
  • 16:35
    ajredniwja labeled #4165
  • 16:35
    ajredniwja commented #4165
  • 15:34
    ajredniwja edited #4165
  • 14:52
    ajredniwja unlabeled #4126
  • 14:52
    ajredniwja commented #4126
  • 14:50
    ajredniwja labeled #4126
  • 14:48
    ajredniwja unlabeled #4174
  • 14:48
    ajredniwja commented #4174
  • 14:33
    davehorton commented #4173
  • 14:29
    ajredniwja labeled #4173
  • 14:29
    ajredniwja unlabeled #4173
  • 14:29
    ajredniwja commented #4173
  • 07:19
    soccermax labeled #4175
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>
I've tried everything I could find on the internet, setting up CORS settings for the Bucket, adding headers, removing headers... just totally lost here.
This message is so generic (you get it if you try to POST to an unexisting bucket, for example) that I don't even know where to begin. I've been a programmer for 15 years now. I would be able to figure this out if I could find a working example or something. The AWS developer experience is just so bad.
Justin Taylor
@pimftw did you get sorted with this?
"Missing region in config"
Yair Ivan Medina Cota