AWS SNS Get Certificate and Private key from .p12 file for Apple APNS

I'm trying to create a platform application on SNS and can easily do it for GCM/Google Push service but I am having problems with Apple. It seems when I when i call CreatePlatformApplication() and...

Docker container keeps growing

I have a python script that on a loop Downloads video chunks from AWS S3 to /filename. Sorts files in order and concatenates them. Uploads entire processed video file to AWS S3. Deletes folder...

Create a zip file on S3 from files on S3 using Lambda Node

I need to create a Zip file that consists of a selection of files (videos and images) located in my s3 bucket. The problem at the moment using my code below is that I quickly hit the memory limit...

Run AWS Lambda to create AMI of the instance in a different region

I am using AWS Lambda to create AMIs on daily basis for my EC2 prod instance. All my infra setup in in a Mumbai region but AWS doesn't support Lambda functionality in Mumbai region yet. So, I...

How to make a HTTP call reaching all instances behind amazon AWS load balancer?

I have a web app which runs behind Amazon AWS Elastic Load Balancer with 3 instances attached. The app has a /refresh endpoint to reload reference data. It need to be run whenever new data is...

AWS KMS throws exception on encrypt

Created a method to encrypt data using AWS KMS. It was working for a while then I'm experiencing the following exception. Even tried creating a new key but no luck! Not sure if it is something to...

Amazon SES (out of sandbox and domain verified) fails when send email

I have configured Amazon SES (out of sandbox and domain verified). But when I send the email it fails. I send it with these parameters: from: [email protected] host:...

Nginx error: client intended to send too large body

Periodically I get an error: This site can't be reached. The webpage at https://example.com/document might be temporarily down or it my have moved permanently to are new web address. My site is...

How to set the TTL attribute in the publish method of SNS in NodeJS?

I'm writing code to send an OTP message. My current parameters and publish method look as follows: params = { Message: otpMessage, MessageStructure: 'string', PhoneNumber:...

An error occurred (InvalidClientTokenId) when calling the AssumeRole operation: The security token included in the request is invalid

I'm constantly getting this error: An error occurred (InvalidClientTokenId) when calling the AssumeRole operation: The security token included in the request is invalid. when I run this Assume...

Download a folder from S3 using Boto3

Using Boto3 Python SDK, I was able to download files using the method bucket.download_file() Is there a way to download an entire folder?

Download file from AWS S3 using Python

I am trying to download a file from Amazon S3 bucket to my local using the below code but I get an error saying "Unable to locate credentials" Given below is the code I have written: from...

AWS Lambda Polling from SQS: in-flight messages count

I have 20K message in SQS queue. I also have a lambda will process the SQS messages, and put data into ElasticSearch server. I have configured SQS as the lambda's trigger, and limited the Lambda's...

Performance issue with React deployment on AWS S3

I have built and deployed React app (let's call it app A) on S3 and enabled "Static website hosting" for it. This app was earlier running on an EC2 instance using Node. Recently, someone from the...

AWS RDS download full log file (access & error)

I am unable to download complete logs using AWS CLI for an postgres RDS instance - aws rds download-db-log-file-portion \ --db-instance-identifier $INSTANCE_ID \ --starting-token 0...

Changing EC2 pem file key pair when you have access to the EC2 instance

thank you for your time. I have an EC2 instance, but for security reasons i need to change the pem files associated in .ssh/authorized_keys. I do understand that the public pem file goes into...

Amplify Init Error - ✖ Root stack creation failed init failed TypeError: Cannot redefine property: default

Using amplify init, right after choosing which profile to use, I get this error and am not sure why: ✖ Root stack creation failed init failed TypeError: Cannot redefine property: default I...

Does Amazon DocumentDB support BI Connector?

I want to know whether Amazon DocumentDB is compatible with the BI-Connector or not? Good new that Amazon DocumentDB (with MongoDB compatibility) is now available in the Asia Pacific (Singapore)...

AWS-sdk no paginators for rds cluster

I just found out that I can get a max of 100 records for DBClusterSnapshots, luckily AWS supports pagination where you can get a list by page. I was going over the documentation for aws-sdk-go to...

How to retrieve Cognito UserPool attributes using "getUser" React JS

UPDATE: FOUND THE ANSWER and made a Video: AWS Cognito - get authenticated User UserPool Attributes - React.JS I am trying to retrieve the authenticated users user pool attributes so I can display...

How can I list all resources that belongs to a certain VPC?

At my AWS account, I have few VPC. I'm trying to find a way to list all resources that located under a certain VPC. Thanks!!

Attach Volume EFS in ECS

When trying to mount an EFS file system together with ECS, I get the following error: ResourceInitializationError: failed to invoke EFS utils commands to set up EFS volumes: stderr: mount.nfs4:...

Sort stacked graphs in the y axis

I'm using a stacked graph in AWS quicksight and I need to be able to sort by Cost vertically. The only option I see is to sort by Cost horizontally making the dates appear out of order. By default...

Can't add AWS amplify ANAME to freenom domain DNS

I'm trying to add my custom domain from freenom to my AWS amplify app. The AWS suggests that I have to add an ANAME record (which I read is just called A on freenom) for the target:...

How to identify an EC2 Classic Instance

Recently got an email titled, "Important News from AWS About Amazon EC2-Classic" describing some changes that need to occur. These emails from AWS usually reference the effected resources though...

AWS Cloudshell not starting

I am trying to access CloudShell from my AWS account, when doing so, I receive a blank page: I tried from the root user as well as from a user I created with the following...

Invoke an AWS Lambda function only after an Amazon DynamoDB export to Amazon S3 is totally complete

I am new to AWS and cloud technology in general. So, please bear with me if the use case below is a trivial one. Well, I have a table in Amazon DynamoDB which I am exporting to Amazon S3 using...

CDK Pipelines: Use Stack output in `post`step of stage

I have a pipeline stack with a stage. This stage contains multiple stacks. One of the stacks creates a Step Function. Now I would like to trigger that step function in the post of the stage (I...

Psycopg2 on AWS Lambda not connecting to RDS database

When I try to connect to my RDS Postgresql DB I get the following output { "errorMessage": "2022-01-07T13:28:35.428Z 975a92cd-936c-4d1c-8c23-6318cd609bff Task timed out after 10.01...

AWS Lambda Application with Java resource

I have a project that I'm able to run locally, but it fails on AWS. To run the project locally I do sam build and then sam local start-api --host 0.0.0.0. Then I call...