I want to make a write to RDS from lambda. As they both are in different accounts, I created a peering connection between them and also created a secret endpoint to access it. I have a non-rotational secret manager endpoint, I have a lambda handler like How the secret endpoint will be used in this handler and…
Tag: amazon-web-services
How to improve performance of initial calls to AWS services from an AWS Lambda (Java)?
I recently tried to analyze some performance issues on a service hosted in AWS Lambda. Breaking down the issue, I realized that it was only on the first calls on each container. When isolating the issue, I found myself creating a new test project to get a simple example. Test project (You can clone it, build …
AWS Elastic Beanstalk Application Logging with Logback
EDIT: Added Image (The problem looks like log files are not written) I am running an spring mvc (NOT springboot) WAR file on AWS Elastic Beanstalk on a ‘Tomcat 8.5 with Corretto 11 running on 64bit Amazon Linux 2/4.1.3’ environment. Everything is working as expected EXCEPT application logs that I …
Getting NoSuchMethoError While uploading file on Amazon S3 bucket
I was trying upload the file in Amazon s3 bucket using the server-less architecture below is the described flow ApiGateway->lambda->s3bucket I am sending Request using postman, image is encoded …
Use AWS issued certificate for a Spring Boot app
I have an app running on AWS that has got a React JS front-end hosted through S3 and Spring Boot back-end hosted on EC2 instances behind a load balancer. I got my SSL certificate for my domain and I use CloudFront to redirect HTTP requests into HTTPS. My issue is that I can connect through HTTPS to my load ba…
Communications link failure connecting spring boot app to aws aurora
I am trying to connect the spring boot application I have created locally to an aws serverless aurora database. I have added the maven dependency: As well as created an application.properties file: I have also created a VPC inbounds group for the db to allow incoming traffic from my IP address. My Issue is th…
How to get an alarm when there are no logs for a time period in AWS Cloudwatch?
I have a Java application that runs in AWS Elastic Container Service. Application polls a queue periodically. Sometimes there is no response from the queue and the application hanging forever. I have enclosed the methods with try-catch blocks with logging exceptions. Even though there are no logs in the Cloud…
Associate AWS CDK EmailConfigurationProperty with UserPool
How do I associate EmailConfigurationProperty with UserPool? I have both objects configured, but do not see the path to connect them. https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.UserPool.html https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cognito.CfnUserPool.EmailConfigu…
Application source bundle doesn’t work when uploaded to AWS Elastic Beanstalk
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 the environment, specifically client_max_body_size. It looks like the app …
How to identify authentification error type in AWS Amplify using Kotlin?
I want to display different errors to the user when they are logging in through AWS Amplify using Kotlin. This is what I have set up as my last parameter of Amplify.Auth.signIn(): “error” is a “Throwable?” which I wanted to cast to various AWS exceptions and check whether the cast was …