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.1195.0 (compare)

  • 18:24

    aws-sdk-js-automation on v2.1195.0


  • 16:32
    ajredniwja unlabeled #3995
  • 16:32
    ajredniwja commented #3995
  • 16:25
    ajredniwja labeled #4009
  • 16:25
    ajredniwja unlabeled #4009
  • 16:25
    ajredniwja commented #4009
  • 16:22
    ajredniwja unlabeled #4102
  • 16:22
    ajredniwja labeled #4102
  • 16:22
    ajredniwja commented #4102
  • 16:10
    ajredniwja unlabeled #3908
  • 16:09
    ajredniwja commented #3908
  • 15:50
    ajredniwja unlabeled #4178
  • 15:50
    ajredniwja labeled #4178
  • 15:50
    ajredniwja commented #4178
  • Aug 12 18:27

    aws-sdk-js-automation on master

    Updates SDK to v2.1194.0 (compare)

  • Aug 12 18:27

    aws-sdk-js-automation on v2.1194.0


  • Aug 12 13:07
    davehorton commented #4173
  • Aug 12 13:07
    davehorton closed #4173
  • Aug 11 18:24

    aws-sdk-js-automation on master

    Updates SDK to v2.1193.0 (compare)

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
Franz Bu

I am new with AWS javascript sdk and we are trying to interact with AWS IoT over websockets since normal MQTT connection to AWS IoT with TLS (with certificates) is not supported for browsers.
I have been following this guide and also this guide but i cannot understand where the credentials and sessionToken is comming from. I know where to find my credentials (access key ID and secret access key) on my AWS account but when i try to run the examples mentioned in both links i become always an error because i dont know how to get my credentials and session token. It seems like i have to use AWS cognito?? but it should be an other way without this other service or not? Has someone maybe a more complete example? Please be kind and help me :D

In the code bellow i think somewhere i should do something like this:

var con = AWS.Credentials({accessKey: 'KEY',secretAccessKey: 'SECRET_KEY'})

or like this:

var con = AWS.Config.Credentials({accessKey: 'KEY',secretAccessKey: 'SECRET_KEY'})

Because i always become an error here:


But how i have to do it exactly?? I havent been able to find a good and complete example...

The imports/sources i am using:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.653.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/core-min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/hmac-min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/sha256-min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js" type="text/javascript"></script>
Gus Narea
Hello. I have a Node.js web app that communicates with S3. Is it safe to reuse the same AWS.S3 object across (concurrent) requests? I'd like to initialise the S3 client with keep-alive at the module level, assuming it's safe to use the same object concurrently.
Hi, hope this is the right channel. I'm trying to figure out a way to query n random items from dynamoDB without scanning the entire thing? Could anyone point me in the right direction?
Hey guys, did you manage to do a put request with Amplify and Angular 9, Having a 403...