Issue We have a site for our customers to log onto to get their relevant data. We have set it up on AWS using Cognito for user authentication. Each customer navigates to the same URL, enters their credentials, and then
Continue readingTag: amazon-web-services
AWS SSO – "Request nameID format does not match our record"
Issue I’m trying to get a test app working with the AWS single sign-on service. When I hit the SSO login url and enter my credentials, it logs in fine, but then Amazon displays the error: Requeest nameID format does
Continue readingAWS: Unable to login into aws-sdk using sso credentials
Issue I am trying to access AWS resources with AWS-SDK using SSO credentials from the node.js application. For this, first I have created my SSO profile from AWS CLI and then I am trying to use same profile in the
Continue readingHow to Create a Client in Keycloak to use with AWS Cognito Identity Federation
Issue I have a user base with identity and authentication managed by keycloak. I would like to allow these users to login and use AWS API Gateway services with Cognito using an OpenID Connect federation. The AWS documentation on using
Continue readingAWS Cognito AdminLinkProviderForUser tries to update immutable user attribute
Issue I would like to link new user who is using SSO with the existing cognito user. In order to achieve this, cognito has AdminLinkProviderForUser endpoint. But this endpoint returns error below and I cannot change the user attribute configuration
Continue readingLogin to EUC Dashboard works via CloudFront URL but not via User Portal
Issue I am creating an EUC Dashboard in AWS by following this tutorial. SSO is the IdP and a Cognito User Pool is the SP. I created a user in SSO who can sign-in and see the Dashboard via the
Continue readingAWS Amplify federatedSignIn for multiple SAML providers
Issue We need to support multiple identity providers on Cognito, therefore there will be multiple identity provider configuration will be set as SAML. But I know that we need to provide the providerName as customProvider on AWS Amplify const resp
Continue readingAWS SSO for external client AWS accounts not in an organization – Best Practices
Issue I have multiple different clients I work with that are completely independent of each other. If a client I’m working with already has an AWS account, I may develop software in their existing AWS account, but if they don’t
Continue readingHow to retrieve groups for a specific user using the AWS SSO SCIM API?
Issue I am trying to use the AWS SSO SCIM API in order to retrieve the AWS SSO groups for a particular user. Looking at the documentation https://docs.aws.amazon.com/singlesignon/latest/developerguide/listgroups.html It mentions the following To see group info for a certain member,
Continue readingAWS SSO 'no access error' with Custom SAML application
Issue I am trying to setup a Custom SAML 2.0 application with AWS SSO. However I have the following error from network tab: Status code 403 {"message":"No access","__type":"com.amazonaws.switchboard.portal#ForbiddenException"} And this one displayed in the UI: Two considerations that might cause
Continue readingMicrosoft oidc in AWS Cognito allowing multiple tenants
Issue I’m trying to implement social login using Microsoft account in AWS Cognito User Pools. I followed documentation and the solution mentioned in this thread: https://forums.aws.amazon.com/thread.jspa?threadID=287376&tstart=0 My problem is with setting the issuer to allow multiple tenants. This issuer works
Continue readingHow to check if AWS CLI SSO is logged in
Issue I’m using aws sso login, but I can’t found out how to discover if I’m already logged in or if I need to login again, the only way I found to do that is to run a command I
Continue readingCreating users in AWS SSO group using boto3
Issue I have used boto3 pretty much but never used it for accessing AWS SSO. It is the first time I am going to work on AWS SSO, So pretty new to this. I want to create a user in
Continue readingSpring Boot SAML using AWS SSO as IdP errors with Bad Input
Issue I want to build a site hosted with Spring Boot and I would like to use AWS SSO as the SAML identity provider for authentication. I have built a PoC application and tried to follow AWS configuration instructions and
Continue reading403 Access Error returned from Browser possibly caused by AWS
Issue I have my serverless web app hosted on AWS amplify. I am getting Access Denied error XML if I try refreshing the page. When I look into the Console, it shows no output. The code works fine on localhost,
Continue readingHow can I combine AWS EC2 describe-instances with describe-image?
Issue I have 2 API calls, the second uses AMI-ID from the first aws ec2 describe-instances \ –query "Reservations[*].{ \ OWNERID:OwnerId, \ IP:Instances[0].PublicIpAddress, \ ImageID:Instances[0].ImageId, \ AZ:Instances[0].Placement.AvailabilityZone, \ STATE:Instances[0].State.Name, \ KEY:Instances[0].KeyName, \ VPC:Instances[0].VpcId, \ ID:Instances[0].InstanceId, \ INSTANCETYPE:Instances[0].InstanceType \ }" –output
Continue readingApplication source bundle doesn't work when uploaded to AWS Elastic Beanstalk
Issue I’m trying to upload a Java/Spring Boot app that runs in a Linux 2 Coretto 11 environment. Everything worked fine when I uploaded the standalone JAR files, but I started creating an application bundle instead so I could configure
Continue readingNGNIX redirect_uri with AWS Cognito
Issue I have a service(Apache Superset) running on localhost:8088. I am trying to connect to AWS Cognito using NGINX as a webserver. My NGINX config is /etc/ngnix/conf.d/superset.conf server { listen 80; server_name in.welcome.com; return 301 https://$host$request_uri; } server { server_name
Continue readingNginx Using AWS Auto Scaling Group instances in configuration files with Nginx open source
Issue I want to add the servers which are behind the AWS Auto Scaling Group to the Nginx configuration file , I see with Nginx plus there is an agent nginx-asg-sync which we can use directly and it will do
Continue readingWhy is X-Forwarded-Proto always set to HTTP on Elastic Beanstalk?
Issue Setup Hi. I’m deploying an ASP.Net Core application to AWS Elastic Beanstalk. The platform I’m running on is 64bit Amazon Linux 2/2.1.5 using Nginx as the proxy server software. I’ve got a pair of listeners for my load balancer
Continue readingNginx Proxy Pass Nodejs to React Application
Issue I have a front end of react and backend of node, for some reason it wont make the right request to the backend. The error log given by nginx 111: Connection refused) while connecting to upstream, server: _, request:
Continue readingnginx: [emerg] host not found in upstream "udagram-users:8080" in /etc/nginx/nginx.conf:11
Issue After deploying to AWS EKS I get this error Gtihub repo: https://github.com/oussamabouchikhi/udagram-microservices Steps to reproduce Create AWS EKS cluster and node groups Configure EKS cluster with kubectl Deploy to EKS cluster (secrets first, then other services, then reverserproxy) .
Continue readingSuggestions for hosting SPA on AWS
Issue I have an application that has an Angular Frontend and a Django Backend. I’ve already set up my django application to run on Elastic beanstalk, however, I am unsure what I should do to serve static files. I’d rather
Continue readingManually set current user credentials in AWS Appsync
Issue I’m using Nativescript with AWS Amplify to login to AWS AppSync. The session stored by Amplify is cleared after app refresh. I get no user from Auth.currentSession() after app refresh. However, I store the jwt from login and can
Continue readingAmazon S3 – ERR_INSECURE_RESPONSE
Issue This question has already been asked here but that answer didn’t help me as I know that the URL is correct as it points to a US Standard url as detailed in the amazon guide here So I’m attempting
Continue readingPass AWS SM Secret Key to Lambda Environment with CDK
Issue I am having some trouble getting a specific Secrets Manager Secret key value to pass it to my lambda through CDK. After some time I finally realized that my SecretValue is only resolved when I actually deploy this to
Continue readingAWS DynamoDB V3 SDK How to write generic send?
Issue I am using Typescript with AWS SDK V3. I would like to create DynamoDB client send wrapper that would do error logging. The problem is that I can’t pass DynamoDB commands due to a type mismatch. Example: import {
Continue readingHow to run eb init specifying node.js version 8?
Issue I run eb init and deploy, I get the node.js version 6, how can I specify that I want node.js version 8 when executing eb init command? Solution This is an interesting question and I would love to know
Continue readinglisten EADDRINUSE: address already in use :::3306 when attempting connection with MySQL server via Node.JS app
Issue I am experiencing problems with MySQL connection since making a few changes, and exhausted all suggestions, found here and the net as well as official troubleshooting docs, I come here in the hope of help. The problem. When trying
Continue readingHow to mock AWS Cognito CognitoIdentityServiceProvider with Jest?
Issue I’m trying to write unit test where I need to mock response of method from cognito service – CognitoIdentityServiceProvider I have the following working code calling the adminInitiateAuth operation import * from AWS from ‘aws-sdk’ const cognito = new
Continue readingIssue with Cognito API using Angular HttpClient and HttpHeader
Issue I’m currently having trouble with HttpClient vs Axios when I use this code const requestBody = { grant_type: ‘refresh_token’, client_id: environment.APP_COGNITO_CLIENT_ID, refresh_token: this.storage.get("auth").refresh_token, }; const params = { baseURL: "https://testing.auth.eu-west-2.amazoncognito.com", url: ‘/oauth2/token’, method: ‘post’, headers: { ‘Content-Type’: ‘application/x-www-form-urlencoded’, },
Continue readingWhat is the simplest way is to deploy an existing AWS Lex and Lambda as an Alexa Skills Kit (ASK)?
Issue I currently have a Lex bot that requires a Lambda function on my AWS account. I want to turn this existing bot into an Alexa Skill but can’t migrate it easily. What I’ve done so far: Publish a version
Continue readingREACT Component renders and then disappears
Issue I have only one function that first gets the list of devices. the list is a JSON array. then the function loops over each element and request the shadow. The function builds a new array using the device properties
Continue readingAWS Elastic Beanstalk – Request Entity Too Large (413)
Issue I am trying to deploy a Node-based web service to elastic beanstalk but running into problems when posting too much data. The issue seems to be at the nginx layer, not the Node / express layer. The message I
Continue readingHow to send contact form data to email address with Angular, using Spring Boot as Backend and the AWS SES service?
Issue I have a website created with Angular with a contact form in ‘contact us’ and would like to allow users to send messages. The contact data should be sent to my personal email address. Sending contact form data with
Continue readingHow to share my own custom fucntions on AWS lambda nodejs
Issue I Currently have a project in AWS with several lambda functions, most of the functions in NodeJS, I want to know if is there a way to create a lambda layer with my own code functions that I use
Continue readingPut number first function respond with this: Promise { <pending> }
Issue I am using the following function to put some data into dynamo DB table but I am getting this response that Put number first function responds with this: Promise { pending } Here is the code async function putNumberFirst(phoneNumber)
Continue readingsession.isvalid() is always valid amazon cognito
Issue The problem is that even after expiration time that is 5 min for ID token and access token, the session is still validated for some reason I cannot understand. Can someone help me what should I Do? let cognitoUser
Continue readingAWS lambda to send SNS "succeeds" but message not actually sent
Issue I’ve written an AWS lambda function to send a text message when an S3 object is uploaded. I’ve confirmed the subscription and I can receive test messages sent from the SNS console. When I test the lambda all the
Continue readingUnable to connect to AWS RDS using Sequelize ORM
Issue I am working on an application which uses the Sequelize ORM to connect to AWS RDS. I have my connection set up as such: Connection import {Sequelize} from ‘sequelize-typescript’; // Instantiate new Sequelize instance! export const sequelize = new
Continue readingElastic beanstalk health turns severe
Issue I have created an Elastic Beanstalk application, uploaded my built code and it went into the process. Only to show that the health is severe. I don’t know why is this happening. It works well if I create the
Continue readingNode AWS-SDK SES email send verification fail
Issue I am using aws-sdk using Node to send AWS SES emails and I was able to successfully send emails using AWS CLI. However, from my Node script, verification for my email fails for some reason. Below is the code:
Continue readingFailed Bitbucket NodeJS repo Pipeline with AWS Lambda function with "Error parsing parameter '–zip-file……' "
Issue Our team is having a problem trying to set up a pipeline for update an AWS Lambda function. Once the deploy is triggered, it fails with the following error: Status: Downloaded newer image for bitbucketpipelines/aws-lambda-deploy:0.2.3 INFO: Updating Lambda function.
Continue readingUsing require in AWS lambda functions
Issue I am currently researching AWS lambda functions and I can’t find anywhere if I can use the require statement in them so that I can use other, non-lambda functions. I know about zipping the node modules folder but this
Continue readingIs there any way to check if the emails sent by my app are open?
Issue Hello I have developed an application that works with React.js and Node.js. I use AWS and SES (Simple Email Service) to send some emails. My question is whether there is any way I can keep track of emails sent
Continue readingNodejs App at 0.0.0.0:80 not public
Issue I am using a ec2 server running ubuntu and nodejs. I thought this would create a valid server that would respond if I went to my ec2 web address. var http = require(“http”); var port = 80; var serverUrl
Continue readingQuery condition missed key schema element : Validation Error
Issue I am trying to query dynamodb using the following code: const AWS = require(‘aws-sdk’); let dynamo = new AWS.DynamoDB.DocumentClient({ service: new AWS.DynamoDB( { apiVersion: “2012-08-10”, region: “us-east-1” }), convertEmptyValues: true }); dynamo.query({ TableName: “Jobs”, KeyConditionExpression: ‘sstatus = :st’, ExpressionAttributeValues:
Continue readingHow is it possible to debug an AWS Lambda function from remote?
Issue We are taking over a whole application from another company, and they have built the whole pipeline for deploying, but we still don’t have access to it. What we know, that there’s a lambda function is running triggered by
Continue readingAWS S3 Generating Signed Urls ''AccessDenied''
Issue I am using NodeJs to upload files to AWS S3. I want the client to be able to download the files securely. So I am trying to generate signed URLs, that expire after one usage. My code looks like
Continue readingReading AWS Param Store from Lambda
Issue First foray into AWS’s Lambda@Edge and trying to retrieve secrets from AWS Param Store for authentication (following this article) but getting nothing back. Here’s the function that calls the AWS.SSM function: const fromParameterStore = async(key, withDecryption = false) =>
Continue readingSQS lambda invokes 3 times always, don't know why? on serverless aws
Issue This is queue consumer code written in node js const consumer = async (event) => { console.log(event) for (const record of event.Records) { const reqBody = JSON.parse(record.body); console.log(reqBody); } return true; }; I have read somewhere on blogs that
Continue readingWhy does the Cost Explorer Client show wrong results when I have AWS credits?
Issue When using AWS Console –> AWS Cost Management –> Cost Explorer – I get the following values: When I use @aws-sdk/client-cost-explorer I get different results for ‘EC2 – Other’ and ‘Amazon Load Balancer’. Configuration: import { CostExplorerClient, GetCostAndUsageCommand }
Continue readingCondition parameter type does not match schema type
Issue I have a table in dynamoDB called ‘Contributors’. I have a primary composite key where the hash key is ‘UserId’ and the sort key is ‘NoteId’. I want to query for all the items belonging to a particular hashkey.
Continue readingNodeJS 14.x – Native AWS Lambda Import/Export Support
Issue I am looking to make use of the native import/export that comes with ES6. I am using Serverless Containers within AWS Lambda. I have my Dockerfile which looks like this: FROM public.ecr.aws/lambda/nodejs:14 COPY app ./ RUN npm install CMD
Continue readingHow can I deploy a Serverless Framework application the macOS that uses the sharp library to AWS?
Issue I’m developing a Serverless Framework application that is using the Node runtime and is deployed to AWS. One of my AWS Lambda functions uses the sharp library. When I run the AWS Lambda function, the following error occurs: ‘darwin-x64’
Continue readingIs there a less verbose way to write DynamoDB update params?
Issue I am new to Dynamo and I created a simple todo API with Serverless Framework and TypeScript To update an Item I have to do this huge params const const params = { TableName: process.env.DYNAMO_TABLE_TODO, Key: { id: event.pathParameters.id,
Continue readingUnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local
Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:
Continue readingUnknownEndpoint: Inaccessible host: `localhost'. When trying to connect to localhost with express and dynamodb local
Issue I am using docker compose to create two containers one for dynamodb local and one for nodejs express app. docker-compose.dev.yml version: ‘3’ services: dynamodb-local: command: "-jar DynamoDBLocal.jar -sharedDb -optimizeDbBeforeStartup -dbPath ./data" image: "amazon/dynamodb-local:latest" container_name: dynamodb-local ports: – "8000:8000" volumes:
Continue readingCan AWS Lambda's environment variable be set to a boolean value?
Issue I want to update the environment variable for a Lambda function and this the code that I am using currently. const AWS = require("aws-sdk"); exports.handler = async (event, context) => { const res = await updateConfig("test"); }; async function
Continue readingHow to get Lambda functions configuration using async await?
Issue I want to get the configuration of a lambda function using the GetFunctionConfiguration API. Currently the code I am using is based on callbacks but I want to transform it to use async await. var params = { FunctionName:
Continue readingTypeError: headers[key].trim is not a function
Issue I’m trying to execute an API on AWS, that requires a CORS headers, i make the request with all the information but i receive the next error: "TypeError: headers[key].trim is not a function" If i not send de CORS,
Continue readingUpload generated PNG to amazon S3 from node on lambda
Issue I’m downloading 2 png images from their respective URLs then using pixelmatch to compare them and generate a 3rd image. I’m then trying to upload the third image to an S3 bucket but I’m struggling. Code follows. promise1 and
Continue readingHow to pass value of NODE_EXTRA_CA_CERTS to AWS Lambda deployed with Serverless?
Issue I am deploying a Node AWS Lambda with Serverless. Due to the internal requirements of the institution in which this code will be run, I need to pass extra certificates. The only solution I’ve been able to find is
Continue readingAWS EC2 npm install suddenly very slow
Issue In my ElasticBeanstalk environment, it always (for years) used to take ~5 mins for my Node.js app to be deployed and for the instance to change from status "Pending" to "OK" in the EB Health tab. Since May 14,
Continue readingAWS-Amplify, How do I redirect to another URL after sign-in in angular?
Issue I’m using the latest AWS-Amplify’s authentication component. It can logged in successfully but after login I need to sent the route to another url which I can’t able to achieve, it keeping the same url after logged in. BUT
Continue readingWhat is Causing this Lambda to Throw an Error with aws-sdk Version 3?
Issue I have an AWS lambda function triggered by an SNS queue, which is supposed to extract some data from the message it receives, format it, then send it to a different SNS queue. Everything was working well until I
Continue readingProblem doing npm run build on AWS server | JavaScript heap out of memory
Issue I can see that the build folder has been made but get this error message. I dont know wether I should worry or not. I does not happen when i do it on my local machine? yeah something def
Continue readingUsing ExcelJS, how to read data from excel file using URL?
Issue I have excel file upload in cloud. Using node js when front end pass URL i need to read data from excel file. Below is my code, var workbook = new ExcelJS.Workbook(); workbook.xlsx.load(‘https://file-examples.com/wp-content/uploads/2017/02/file_example_XLSX_10.xlsx’) .then(function() { var worksheet = workbook.getWorksheet(sheet);
Continue readingHow to configure AWS S3 SDK for Node.JS to be used with localhost?
Issue I’m trying to use fakes3 as an endpoint for some simple S3 code I’ve written. I can’t get beyond the connection stage though. The current error is: NetworkingError: getaddrinfo ENOTFOUND. I’ve got configuration setup: “aws”: { “accessKeyId”: “123”, “secretAccessKey”:
Continue readingmigrate multipart upload with presigned urls from aws javascript sdk v2 to v3
Issue I successfully have code that allows to support multipart uploads with presigned urls. I was successful converting the code for single uploads with presigned urls, but I cannot find out how to convert the creating of a presigned urls
Continue readingTesting a AWS S3 Presigned Url returns 403 Forbidden (Nodejs)
Issue I have a Lambda Nodejs function behind an API Gateway which successfully returns a Presigned URL: const AWS = require(‘aws-sdk’); const S3 = new AWS.S3({ apiVersion: ‘2006-03-01’, signatureVersion: ‘v4’ }); function getSignedUrl(id, type) { const key = `uploads/${id}.${type}`; return
Continue readingWhy is my access denied on s3 (using the aws-sdk for Node.js)?
Issue I’m trying to read an existing file from my s3 bucket, but I keep getting “Access Denied” with no explanation or instructions on what to do about it. Here is the code I am using: ‘use strict’ var AWS
Continue readingECS Fargate task failing to start: "standard_init_linux.go:228: exec user process caused: exec format error" even when built for amd64
Issue My CDK stack with a Fargate task won’t start, tasks stop directly with the error: "standard_init_linux.go:228: exec user process caused: exec format error" I am aware that this error is often due to the Docker image not being for
Continue readingIs it possible to create a rule in a different account?
Issue Using CDK I am trying to create an event bus rule in a different account: // Getting source bus ARN const sourceBusArn = Stack.of(this).formatArn({ region: this.region, service: ‘events’, account: Config.sourceAccount, resource: ‘event-bus’, resourceName: Config.sourceBusName, }); // Retrieving source bus
Continue readingAWS cloudwatch API canary statuscode comes as failed even the logged(logged in cloudwatch logs) statusCode is 200
Issue I have a API canary setup for testing the availability of APIs. The statusCode of the API is tracked in cloudwatch logs. I am fetching files from S3. Those requests are coming with 200 statusCode as the same available
Continue readingHow to yum install Node.JS on Amazon Linux
Issue I’ve seen the writeup on using yum to install the dependencies, and then installing Node.JS & NPM from source. While this does work, I feel like Node.JS and NPM should both be in a public repo somewhere. How can
Continue readingAWS elastic Beanstalk / nginx : connect() failed (111: Connection refused
Issue I got this message connect() failed (111: Connection refused Here is my log: ————————————- /var/log/nginx/error.log ————————————- 2018/10/21 06:16:33 [error] 4282#0: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.4.119, server: , request: “GET / HTTP/1.1”, upstream:
Continue readingHow do I mock AWS S3 GetObjectCommand with jest using the v3 sdk?
Issue Testing an s3 upload? The method to test is export class ProcessData { constructor() {} async process(): Promise<void> { const data = await s3Client.send(new GetObjectCommand(bucket)); await parseCsvData(data.Body) } This is my attempt at the test case. import {S3Client} from
Continue readingAWS Lambda Node 16 container image error ( Missing Runtime API Server configuration )
Issue I wanted to create node16 container image for aws lambda. I have following Dockerfile and index.js for lambda function. Building image (docker build -t lambda-hello-world .) works fine but when I invoke( docker run –rm -p 8080:8080 lambda-hello-world )
Continue readingNode JS – Stream data from Busboy to AWS S3
Issue I am trying to upload a file to s3 via ec2. My first approach was – upload file to ec2 completely and then upload that file to s3. This approach is not good because transfer time from ec2 to
Continue readingHow to access files deployed in aws elasticbeanstalk
Issue I have deployed node.js code on aws elasticbeanstalk creating a new environment. The app is successfully deployed. I want to access the files. I used ssh to the remote machine but the I can’t find the code Solution Elastic
Continue readingConfigure DynamoDB stream trigger with insert only
Issue I currently have an AWS DynamoDB stream triggers a Lambda function. The Lambda function is triggered by both insert and update events in the DynamoDB. Is there a way to change the configuration so that the Lambda function would
Continue readingAWS lambda api gateway error "Malformed Lambda proxy response"
Issue I am trying to set up a hello world example with AWS lambda and serving it through api gateway. I clicked the “Create a Lambda Function”, which set up the api gatway and selected the Blank Function option. I
Continue reading403 Access Error returned from Browser possibly caused by AWS
Issue I have my serverless web app hosted on AWS amplify. I am getting Access Denied error XML if I try refreshing the page. When I look into the Console, it shows no output. The code works fine on localhost,
Continue readingHow AWS Lambda functions get the dependencies during execution
Issue I have just started learning AWS and nodejs . I am trying to understand how this lambda in the serverless app gets the required information while execution .Let’s consider the below piece of code use strict’; var AWS =
Continue readingAWS Lambda HTTP POST Request (Node.js)
Issue I’m relatively new to AWS lambda function and nodejs. I’m working on to try and get the list of 5 cities in a country by using HTTP POST request from this website: “http://www.webservicex.net/globalweather.asmx?op=GetCitiesByCountry“ I’ve been searching about how to
Continue readingmigrate multipart upload with presigned urls from aws javascript sdk v2 to v3
Issue I successfully have code that allows to support multipart uploads with presigned urls. I was successful converting the code for single uploads with presigned urls, but I cannot find out how to convert the creating of a presigned urls
Continue readingTesting a AWS S3 Presigned Url returns 403 Forbidden (Nodejs)
Issue I have a Lambda Nodejs function behind an API Gateway which successfully returns a Presigned URL: const AWS = require(‘aws-sdk’); const S3 = new AWS.S3({ apiVersion: ‘2006-03-01’, signatureVersion: ‘v4’ }); function getSignedUrl(id, type) { const key = `uploads/${id}.${type}`; return
Continue readingWhy is my access denied on s3 (using the aws-sdk for Node.js)?
Issue I’m trying to read an existing file from my s3 bucket, but I keep getting “Access Denied” with no explanation or instructions on what to do about it. Here is the code I am using: ‘use strict’ var AWS
Continue readingAWS cloudwatch API canary statuscode comes as failed even the logged(logged in cloudwatch logs) statusCode is 200
Issue I have a API canary setup for testing the availability of APIs. The statusCode of the API is tracked in cloudwatch logs. I am fetching files from S3. Those requests are coming with 200 statusCode as the same available
Continue readinghow to do the update when my key is called key
Issue I have a problem with an update in dynamoDB , when performing the update in dyanamo it tells me that I cannot use the key keyword "message": "Value provided in ExpressionAttributeNames unused in expressions: keys: {#keyid}", "code": "ValidationException", "time":
Continue readingHow to solve AWS Elastic Beanstalk 504 Timeout Error?
Issue I am using AWS Elastic Beanstalk for hosting Express/Node.js API server. It’s working well with just normal APIs but I am getting this 504 Timeout error with only one API which may take time for more than 20 mins
Continue readingRETAIN removalPolicy on secret stack so it doesn't get deleted on synth
Issue I have a cdk stack, including a secrets stack and I’m currently trying to do a deployment my app, and I have recently deleted a secret stack and container from ecr. However, as the current deployed app relies on
Continue readingAWS authorizer returns 500, message: null, with AuthorizerConfigurationException error in response
Issue I’ve spent the better part of today trying to make authorizers work, I’ve checked multiple examples and they all seem to be doing the same thing my code does. I use serverless framework here’s the authorization code: exports.handler =
Continue readingReturn excel file from AWS Lambda function
Issue I’m trying to return an excel file through Lambda. It succeeded, but the content is only the base64 encoded string of the file. Here’s the code: const xl = require("excel4node") module.exports.handler = async () => { var wb =
Continue readingProper signing of requests to aws resources through http
Issue I have a lambda function that is writing some data to an Elasticsearch domain I have also set up through AWS. Currently the access policy on my domain is just to allow my own IP address to work with
Continue readingNeed help deploying my first web application
Issue first of all, sorry if I’m difficult to understand, english isn’t my mother language but I’ll try to explain. I was asked to migrate a desktop application to the cloud to provide it as SaaS so I thought AWS
Continue readingMonitoring React/NodeJS/MongoDB application in AWS
Issue I have React/NodeJS/MongoDB application running in AWS and just wondering what is the best way to monitor the application’s health and performance. Is it using specialist tools like Dynatrace or using AWS services like CloudWatch Alarms and Application Insights?
Continue readingReturn excel file from AWS Lambda function
Issue I’m trying to return an excel file through Lambda. It succeeded, but the content is only the base64 encoded string of the file. Here’s the code: const xl = require("excel4node") module.exports.handler = async () => { var wb =
Continue readingReturn excel file from AWS Lambda function
Issue I’m trying to return an excel file through Lambda. It succeeded, but the content is only the base64 encoded string of the file. Here’s the code: const xl = require("excel4node") module.exports.handler = async () => { var wb =
Continue reading