I'm looking for a Python Lambda function that can handle DynamoDB streams and convert the JSON data from DynamoDB format to standard JSON. PHP and nodejs have Marshaler options for this task, but I'm interested in finding similar or alternative solutions ...
I'm currently in the process of setting up a prototype project with Next.js by utilizing a Static html export (specifically, next export) and then transferring the output to AWS S3 for Cloudfront to serve. In my /pages directory, I have the following two ...
I am trying to automate the inclusion of "AWS": "arn:aws:iam::684821578293:user/jenkins" in my cloudformation template. However, when I use the join function, it does not work. Can someone assist me with this issue? Below is the working template where you ...
After conducting thorough research on the topic following the formulation of this question, it has come to my attention that there are numerous queries similar to mine. However, I firmly believe the issue at hand here is distinct: No 'Access-Control- ...
After creating a fresh NextJS app with only basic boilerplate files and folders, I uploaded it to a CodeCommit repository. I already had a functional CodePipeline and simply switched the Source stages. However, I am encountering deployment failures during ...
Embarking on the journey of server administration for the first time is both daunting and exciting! As a node.js developer, I have relied on Nodejitsu until now. However, with rising prices, I am now exploring setting up my own server using AWS. My develo ...
I've been working on utilizing a pre-signed URL for an S3 bucket with a custom endpoint, but I'm encountering a persistent issue. Despite being very close to the solution, I keep facing a Method Not Allowed error. Here's what I have so far. ...
We rely on various namespaced private packages from NPM in our development process. During the deployment procedure with EB CLI (eb deploy), we encounter an issue when EB tries to execute npm i. This results in a deployment failure since EB lacks access t ...
I am facing an issue with my Next.js project deployed on AWS Amplify. While images load properly in development mode, they are not loading in production mode. I have tried various solutions such as: Enabling the "Legacy cache settings" option and setting ...
I am currently developing an AWS Lambda function using Typescript that interacts with a database through Sequelize. According to the official Sequelize documentation, the configuration for Sequelize should be as follows: let sequelize = null; async func ...
As I delve into learning DynamoDB and the AWS serverless stack, I've noticed that many tutorials recommend using AWS.DynamoDB.DocumentClient. This is exemplified by the following code snippet used to create an item: const dynamodb = new AWS.DynamoDB.Docum ...
My current environment includes AWS cloud, DynamoDB, AWS Cloud9, Python, and JSON. I'm attempting to write these elements into a DynamoDB table using the command aws dynamodb batch-write-item --request-items file://Sensors.json in my Cloud9 CLI. However, ...
Utilizing DynamoDB in conjunction with node.js and Express for developing REST APIs has been a beneficial choice for us. We have opted for Dynamo on the backend due to its operational simplicity. To streamline our usage of DynamoDB, we have incorporated t ...
Currently, I am using the following code snippet to retrieve all details about my product from Amazon: let activeProductsResponse = await APIs[ idProductsStocksPlace ].callAPI({ operation: 'getListingsItem', en ...
Upon deploying my first web app to the Elastic Beanstalk, I encountered an issue where attempting to access it resulted in a "502 Bad Gateway" error. Reviewing the logs revealed the following error: npm ERR! Please include the following file with any supp ...
My setup involves websockets with AWS API Gateway, an EC2 instance running Node.js and Express with WS websockets. I can send a message from wscat to the API Gateway WSS URL and it shows up in the EC2 instance. However, when I send a message from the EC2 i ...
Utilizing a framework known as the Serverless DataLake Framework (SDLF), files can be ingested into an AWS S3 DataLake. Certain configurations are required to move a file through various stages within the S3 repository. The initial step involves transferri ...
Below is an example of a list I have: { "favorites": [ { "createdAt": 1448998673852, "entityId": "558da3de395b1aee2d6b7d2b", "type": "media" }, { "createdAt": 1448998789252, "entityId": "558da3de395b1aee2d6b7d83 ...
I recently started using AWS S3 and encountered the SignatureDoesNotMatch error while trying to upload an image. I double-checked for any typos in my keys, ensured that my system time was accurate, but still couldn't resolve the issue. My workflow, mo ...
I have encountered an issue with setting a rule and a lambda target for EventBridge. Although I have successfully added the rule and target, the Lambda is not being triggered. Additionally, when I look at the target Lambda function on the AWS Console, I do ...
My backend API services are hosted on AWS using API Gateway and EC2 instance. The backend is built with Node.js/Express JS, and socket.io is used for real-time messaging. const initializeExpress = (): void => { const app = express(); let http = re ...
Update: Initially, I used the correct callback(null, response) but then encountered the need to run sam init again for a different project and install a new node version with nvm. The lambda function below is responsible for creating a new item in datocms ...
I've successfully deployed the APC cache on AWS Elastic Beanstalk (confirmed via phpinfo()) How can I verify if APC is functioning properly? Where can I find the location of the apc.php file? Thank you ...
I've been working on uploading images to S3 using AWS Lambda. I found some helpful code in a URL and made some modifications to the variables fileFullPath and Bucket: Upload Image into S3 bucket using Api Gateway, Lambda funnction const AWS = requir ...
When I upload an image to AWS S3 bucket, the image size is only showing as 6 Byte, which is not the actual size of the image. I am confused why the image is not uploading with its actual size. What could be causing this issue? interest.js file Inter ...
In my Node.js and Vue.js project, the goal is for a user to input their AWS credentials, provide a link to an online data source containing a large amount of data, and run an algorithm on this data using their provided AWS account. I am facing two challen ...
Recently, I started exploring aws and its capabilities. Currently, my focus is on developing a web application that allows users to input text in two separate fields. Subsequently, this text will be converted into a Json file and stored in the S3 bucket. ...
exports.handler = async event => { console.log(event); try { const { userName } = event; const { codeParameter } = event.request; let userParams = { userId: userName, codeParameter }; // Determine the reason for this function being i ...
I am encountering an issue while deploying a Next.js 14 application using AWS Amplify Gen 2. My build is failing due to a GLIBC version error. The error messages indicate that the required GLIBC versions (GLIBC_2.27 and GLIBC_2.28) are not located. I am ut ...
After transitioning our staging environment for the REST API from NodeJS 8.x to NodeJS 12.x on AWS Lambda due to end of life for NodeJS 8.x runtime, we have encountered a new issue. Periodically, requests from our frontend web app to API Gateway fail with ...
Is it feasible to achieve something like this? How should the design be tailored for this specific use case? Do I need to incorporate a lambda function that includes the user (owner) in the post creation process? Seeking assistance on how to implement thi ...
I am a newcomer to Spark. Recently, I attempted to run a basic application on Amazon EMR (Python pi approximation found here) initially with 1 worker node and then in a subsequent phase with 2 worker nodes (m4.large). Surprisingly, the elapsed time to co ...
Currently, I am working on implementing a deleteImage function in my front end to interact with the backend through API routes. Below is the function I have for uploading images: const uploadImages = async (ev) => { const files = ev.target?.files; ...
When hosting React apps in my development and production environments using S3 static website hosting, I have found great success. I typically follow a bucket naming structure like dev-myapp-mycompany and prod-myapp-mycompany, with each environment having ...
I'm encountering an issue when trying to deploy my application from localhost:4200 to AWS serverless Lambda. The error in cloudwatch logs is causing a 500 {"message": "Internal server error"} response when I access the URL. My understanding of AWS is limi ...
In the process of migrating a couple of legacy applications to ec2, we are faced with the challenge of storing multiple application configuration parameters individually. The goal is to have separate parameters for each application. The current approach s ...
Is there a more efficient way to export a DynamoDB table into an S3 bucket in CSV format? We already have a lambda function set up to update the DynamoDB table, but now we need to export the entire table. I came across a method of streaming directly from ...
After successfully setting up my API gateway and connecting it to my lambda function, I specified the URL as {id} with the intention of passing this parameter into the lambda. Despite numerous attempts using both the default template and a custom one for ...
I am in the process of sending an ajax request to AWS API Gateway to extract data from a JSON and display it on a webpage. The objective is to have a webpage load, trigger an ajax request to API Gateway, which then invokes a lambda function to fetch inform ...
To summarize, my goal is to resize an image using a combination of redirection, AWS Lambda, and the aws-sdk. After following a tutorial on resizing images dynamically with AWS titled AWS - resize-images-on-the-fly, I was able to successfully implement eve ...
I created a Hive table with a single column that stores JSON data: CREATE EXTERNAL TABLE IF NOT EXISTS my.rawdata ( json string ) PARTITIONED BY (dt string) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde' WITH SERDEPROPERTIES ( 'separat ...
Currently, I am working on a project that involves a nextjs frontend with TypeScript and AWS Amplify for the backend. My intention is to write my Lambda functions in TypeScript as well. However, I have encountered an issue where I have one tsconfig.json fi ...
I am new to AWS and currently working on a web application using node.js and react.js. While my application functions smoothly on my laptop, I now wish to migrate it to AWS EC2. When I replicate a production environment on my laptop, I have a /dist folder ...
I've created a small web application using Node.js Express, HTML, and CSS. It runs locally with the command "npm start app.js", but I'm facing issues when trying to deploy it as a serverless application on AWS Amplify. Here's the build log ...
After scouring the internet, I couldn't find a solution that works for me in Python. I'm trying to pass certain parameters from one lambda function to another within a step function, but it's proving to be more challenging than expected. Can someone provid ...
I have a React application along with two AWS Beanstalk instances: one for development and the other for production. My goal is to deploy the development build of the React app to the development environment and the production build to the production envir ...
After successfully integrating image upload to S3 using a pre-signed URL in App1, I attempted the same process in App 2, only to encounter the recurring error: 403 SignatureDoesNotMatch FRONTEND: import React from "react"; import { uploadAdIma ...
I am currently collaborating on a project with a partner. The backbone of our project is node js, and we are using an AWS RDS MySQL DB for our database. Our main challenge lies in establishing effective communication with the DB through SSH within NodeJS. ...
Our team recently encountered an issue with hitting the request limit on Cognito due to trying to retrieve too many users at once. These users are grouped in game pools. Currently, our only method of obtaining users is through adminGetUser in parallel. Is ...
Attempting to deploy my application using App Runner within AWS via CDK. Utilizing the reference from https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apprunner.Service.html. Upon deployment, encountering the following error: create_failed: R ...
I'm currently working on creating a demo app using Cognito with React. I've been trying out the code available in this GitHub repository to experiment with it. However, I keep encountering the error message Username and Pool information required, and I'm ...
I'm facing an issue in vscode while trying to access the MethodResponse interface from apigateway. Unfortunately, I'm getting an error message: The type 'typeof import(".../node_modules/aws-cdk-lib/aws-apigateway/index")' does not have a prope ...
I have a scenario where I need to deploy a stack using CDK in Account A by running cdk synth and cdk deploy in an ECS Task located in Account B. To enable this, I set up a role in Account A with administrator access and granted permissions to Account B so ...
Hey, yesterday I was attempting to deploy my application on AWS and everything was working fine. But today, when I tried running yarn add or npm install in my dev environment, I encountered the following error: see image here The repository "crinet/crine ...
Currently, I am working on a project that involves using csv-parse on AWS Lambda with a runtime of Node 12.x. I have installed the necessary modules using npm 6.14.10 (node v12.20.1). { "name": "data_analysis_node", "version&q ...
I have been working on integrating a third-party Recharge API. I provided them with the necessary URL, so that whenever a message is sent - whether it's a success or failure - they can update the URL accordingly. Upon checking my AWS system, everything ap ...
In my DynamoDB database table, I have the following structure. It consists of a primary key (ID) and a sort key (receivedTime). ID(primary key) receivedTime(sort key) Data ID1 1670739188 3 ID2 167072 ...
I encountered an error while using Amplify, although the build was completed successfully. Failed to load resource: the server responded with a status of 400 manifest.json:1 The system is functional in the local environment. Below is the Package.json scri ...
I'm encountering an ETIMEDOUT 172.31.97.43:5432 error when attempting to test my nodejs express app with a postgres database on my local machine connecting to AWS RDS. On AWS RDS, I have configured the necessary settings such as; Configuring Inbound and ...
I am currently facing a challenge in setting up a React app within Github Action workflow and deploying it on an EC2 instance. The issue I'm encountering is the inability to access the /build folder that is created during the action process. Below is the ...
My current project involves developing a straightforward screenshot program using Amazon Lambda. The program will take a snapshot of a specified URL and store it in JSON format like this: { "site": "www.example.com", "width": "320", "height": "480" ...
For my initial AWS project, I decided to use the amplify cli. After running npm i -g @aws-amplify/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dcbfb0b59ce8f2eee8">[email protected]</a> and successfully configu ...
After mindlessly updating the npm version on my Amazon Lightsail instance, I ran into an issue where npm was not functioning properly because nodejs v12 does not support the safe-dot reference. I simply followed the instructions provided here at Unfortun ...
I am using the 'alexa-sdk' in nodejs to create a pension calculator skill for Amazon Alexa. I am facing an issue where session attributes are not retained when switching from one state to another. I store them like this this.attributes['ATTRIBUTE_NAME'] = ...
Utilizing Lambda, API-gateway, and DynamoDB with Python 3.6 for managing orders. I have a DynamoDB table structured as follows: orderId (primary Key|String) orderStatus (String) orderCode (String) date (String) The orderId field is unique. However, when ...
I recently completed building a React application using Create-React-App. As part of the deployment process, I configured GitHub Actions to trigger a Docker Build and upload the build to AWS whenever I commit to the 'pre-production' branch. Below is a sni ...
I've encountered issues while trying to run a CLI command to create an AWS System Manager Association task. The specific command causing problems is: aws ssm create-association --name AWS-RunRemoteScript --targets Key=instanceids,Values=i-03710c82b70 ...
I am encountering an issue while attempting to deploy my Node.js app to Elastic Beanstalk. The app is functioning correctly locally, but when I try to deploy it, I receive the following error: Failed to run npm install. Check snapshot logs for more detail ...
const winston = require('winston'); var S3StreamLogger = require('s3-streamlogger').S3StreamLogger; var s3_stream = new S3StreamLogger({ bucket: "bucket_name", access_key_id: "access_key_id", secret_access_key: "secret_access_key" }); var log ...
Implementing a solution recommended by AWS, I am working on creating an API that enables me to revert to previous versions using a Lambda Function connected to API Gateway. The goal is to replace the current object in the bucket with the specified version ...
After setting up my API with the AWS Api Gateway Service, I am now looking to integrate the javascript SDK into a basic webpage. The provided instructions for using the javascript SDK can be found here. However, they mention importing a js file named apig ...
Starting a new aws-cdk project with the structure outlined below src └── cdk ├── config ├── index.ts ├── pipeline.ts └── stacks node_modules cdk.json package.json The package.json file looks like this: " ...
So I've gone ahead and created a brand new serverless (lambda) app using nodejs, expressjs, and ejs on AWS Amplify. After deploying it to the server using auto deployment, I tried accessing my app through the following URL: master.<...>.amplifya ...
I'm faced with a challenge in getting elastic beanstalk to properly serve React from Node.js. While everything works fine locally, I'm struggling to configure the path in elastic beanstalk to serve react. In my project, I have an express app.js ...
I am currently developing an AWS Lambda function with the purpose of assisting users in collecting data from a website by using selenium and headless-chromium. The website has a SMS code verification process during login, which requires the user to input t ...