AWS Lambda S3.getObject throws “Access Denied”, but only when running locally

I am using AWS Lambda and serverless framework to build a service which uses S3 to store a file. The lambda function (“hello”) works perfectly when deployed to the cloud (it has an http …

React-Router locations on AWS s3 bucket do not work

I have my static react app hosted in an AWS s3 bucket. It renders fine. However, I am utilizing react-router-dom to navigate between “pages.” (I have enabled public access, enabled static …

Finding client’s public IP in Nodejs deployed on AWS EC2

Background to the issue: My background is non-networked programming so I am new to web development. I’m in the process of teaching myself javascript. I am experimenting with node.js and have deployed …

GetItem by date in DynamoDB results in ValidationException

I need a data filtered by date but I am getting an error Error ValidationException: The provided key element does not match the schema My table has a primary key (only partition key) of id. async …

How to track upload progress to S3 using aws-sdk V3 for browser (javascript)

I can find a lot of resources online on how to track upload progress to S3 using aws-sdk V2, listening to the event like: .on(‘httpUploadProgress’, event => {} But since I updated the aws-sdk to …

How to query DynamoDB filtering by value in a list

There are three items in database: [ { “year”: 2013, “info”: { “genres”: [“Action”, “Biography”] } }, { “year”: …

AWS S3 REST API “RequestTimeTooSkewed” Error

I am attempting to initiate a multipart upload to an s3 bucket directly from the browser by following the corresponding AWS Docs. However, I’m receiving the following response error: &…

Upload to AWS S3 got 403 Forbidden – Solved by remove “ACL” in param

I was developing the frontend using React.js, and I use Javascript SDK for uploading a file to my S3 bucket using my root AWS account. I followed the official doc but kept getting 403 Forbidden. If …

Unable to customize AWS SES email template

I am trying to send a forgot password mail through AWS SES service. I made this template { “Template”:{ “TemplateName”: “forgotpasswrd”, “…

How to send signed HTTP request from AWS Lambda to AppSync GraphQL?

I am not sure how to send signed http request do AppSync GraphQL endpoint. There is no library for do that in AWS. aws-amplify don’t work because works only in browser, not in Lambda function. aws-sdk for AppSync is only for admin usage, it doesn’t have methods for call user side api It is possible to make IAM signed HTTP request from AWS Lambda? (in some easy way) Answer i would recommend reading this article: Backend GraphQL: How to trigger an AWS AppSync mutation from AWS Lambda, quoting the author, https://stackoverflow.com/users/1313441/adrian-hall, we’ve: GraphQL is routed over HTTPS. That means we