Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 07 13:12
    GuyMev commented #3305
  • Aug 07 00:14
    github-actions[bot] labeled #4168
  • Aug 07 00:14
    github-actions[bot] commented #4168
  • Aug 07 00:14
    github-actions[bot] labeled #4164
  • Aug 07 00:14
    github-actions[bot] commented #4164
  • Aug 07 00:14
    github-actions[bot] labeled #4159
  • Aug 07 00:14
    github-actions[bot] commented #4159
  • Aug 07 00:14
    github-actions[bot] labeled #4155
  • Aug 07 00:14
    github-actions[bot] commented #4155
  • Aug 06 01:43
    Ganesha2552 edited #4174
  • Aug 06 01:43
    Ganesha2552 edited #4174
  • Aug 06 01:43
    Ganesha2552 edited #4174
  • Aug 06 01:43
    Ganesha2552 labeled #4174
  • Aug 06 01:43
    Ganesha2552 labeled #4174
  • Aug 06 01:43
    Ganesha2552 opened #4174
  • Aug 06 00:12
    github-actions[bot] closed #3568
  • Aug 06 00:12
    github-actions[bot] labeled #3568
  • Aug 06 00:12
    github-actions[bot] unlabeled #3568
  • Aug 04 22:14
    RanVaknin commented #794
  • Aug 04 22:14
    RanVaknin commented #794
BertrandMarechal
@BertrandMarechal
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

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"
AnyhowStep
@AnyhowStep
I'm using this to test,
eventBridge.putEvents({
        Entries : [
            {
                Source : "some.source",
                DetailType : "EventBridgeTest",
                Detail : JSON.stringify({ hello : "world" }),
                EventBusName : "some-event-bus",
                Time : new Date(),
            }
        ],
    })
xmunx
@xmunx
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
@jsdtaylor
@pimftw did you get sorted with this?
"Missing region in config"
Yair Ivan Medina Cota
@yairi.medinac_gitlab
hello
Franz Bu
@fbussv

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:

AWS.config.credentials.sessionToken

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>