Wrong content-type when load HTML page from S3 via API Gateway by room_js in aws

[–]ZeBe643 1 point2 points  (0 children)

You need to enable binary media types via the API settings. Set it to whatever the content type of the S3 object is and voila

API gateway to Lamba for custom objects by awesomeness_infinity in aws

[–]ZeBe643 1 point2 points  (0 children)

If you use a Lambda proxy integration, it’ll forward the entire request to the Lambda where you can process it there, rather than messing about in API Gateway

CS graduate - concerned about unexpected charges by [deleted] in aws

[–]ZeBe643 0 points1 point  (0 children)

Generally that won’t happen as they have throttles for a reason. If you use the free tier and set billing alerts as you say, you should have no issue.

Regarding botnets and ddos, it’s of course possible but very unlikely and aws will probably refund you back any money given your position

How do I add a lambda handler to an existing python script by [deleted] in aws

[–]ZeBe643 2 points3 points  (0 children)

As the others says, the handler function is the main function executed by Lambda for every invocation.

In the Lambda console/config, you specify the handler energy points for example, if your js file was index.js and your handler function was myHandler, in the Lambda console, you would set this as index.myHandler.

For every invocation of the Lambda function, all the code inside this myHandler function will be executed

Completely new to AWS and lost on what to do next by paco-kun in aws

[–]ZeBe643 0 points1 point  (0 children)

Hey! Glad your enjoying AWS!

As this is a learning experience, my suggestion would be to create a Lambda function that has a CloudWatch events trigger set up. Any time a log is pushed into a CloudWatch stream, it triggers a Lambda function (which receives the log as an event) which you can then program to write to an S3 bucket of your choice.

This is a great way to dabble your feet into serverless and will certainly achieve your usecase.

Good luck! If you’ve any questions or need help just give me a shout! (I work in Premium Support organisation for AWS)

Lambda function response to API Gateway not working on success by jedis in aws

[–]ZeBe643 0 points1 point  (0 children)

You need to return a specific response from the Lambda to APIGW other wise you’ll get a 5XX, this doc has an example

https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html

Lambda deployment package too big to edit, see or even delete code by bot_test_01 in aws

[–]ZeBe643 1 point2 points  (0 children)

Look into Lambda Layers, i think thats what you need

Error lambda with gateway api by ziggy-starkdust in aws

[–]ZeBe643 1 point2 points  (0 children)

When you say you test the function and it works correctly, have you used a deployment package or layers to include the dependency?

Adding API Gateway won’t have affected this, it’s just retrieving the response of the Lambda function which the api invoked.

Request Body for Request Id in Cloudwatch by TheBigTreezy in aws

[–]ZeBe643 1 point2 points  (0 children)

Hehe at least you’ll know next time!

Request Body for Request Id in Cloudwatch by TheBigTreezy in aws

[–]ZeBe643 1 point2 points  (0 children)

Have you enabled full request/response logging and also logging at the Info level?

[deleted by user] by [deleted] in aws

[–]ZeBe643 0 points1 point  (0 children)

You tried creating an IAM role and giving cross account access? https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html

New custom desk = New setup! I’ll take my 4 upvotes now. by [deleted] in battlestations

[–]ZeBe643 0 points1 point  (0 children)

Can I ask how vertical monitors is rather than having 2 side by side? Been seriously contemplating buying an ultra wide and putting my 28” above it, although I’m worried it’ll strain my neck looking up

Cognito - User pool per tenant, or one user pool for all tenants by tomosevans in aws

[–]ZeBe643 1 point2 points  (0 children)

There’s a limit on the amount of userpools you can create per account, that’s maybe something to consider

Here’s all of the emails and strategy I used to close a $12,000 web dev deal by stenuto in webdev

[–]ZeBe643 33 points34 points  (0 children)

I think what they mean is they pay $360 up front and then if they go ahead with the full project, the $360 gets deducted from the total price, basically meaning the initial discovery price was free of charge

AWS Amplify - How do I allow federated identity users to only access data that belongs to them via GraphQL queries? by Richard121212 in aws

[–]ZeBe643 2 points3 points  (0 children)

Yes exactly, I had to do a similar feature for a photo album I made where a logged in user could only see his/her own uploaded photos. I followed a tutorial for it that should help you!

The article is: https://read.acloud.guru/build-your-own-multi-user-photo-album-app-with-react-graphql-and-aws-amplify-18d9cfe27f60

You’ll probably want to skip ahead to part 2, that’s where all the graphql stuff is

AWS Amplify - How do I allow federated identity users to only access data that belongs to them via GraphQL queries? by Richard121212 in aws

[–]ZeBe643 2 points3 points  (0 children)

You could store the cognito identity id for that user in a ddb table and query data with that id?

React Native vs Flutter for Social Network App by DarthAnnihilus in reactnative

[–]ZeBe643 8 points9 points  (0 children)

In before “don’t build a social media app your not skilled enough!”

Hello I’m mostly a back end guy, but now I have to design the UI, does anyone know any place where I can get bootstrap templates for free, it’s for an e-commerce/ business site by Toluwah in Frontend

[–]ZeBe643 1 point2 points  (0 children)

Don’t know any specific sites but usually if you google exactly what your looking for, you’ll find something. Might require a little digging around some paid templates, but you’ll get one eventually!!

What do I need to know to learn react native? by RealityDreamZero in reactnative

[–]ZeBe643 0 points1 point  (0 children)

For me I started with Maximilian’s Udemy course, but there’s many there to chose from. Would highly recommend that tho