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 how can I
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 it mvn package, deploy
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 write with slf4j/logback. The following is my logback.xml configuration file
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 balancer,
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 that that when I run the
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 Cloudwatch after that. No exceptions or errors. Is there a way
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.EmailConfigurationProperty.html Answer As of AWS CDK v1.62.0 the UserPool high level object does not have a setter for the EmailConfigurationProperty. The solution is to use the setter on the CfnUserPool low level object.
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 is starting but then some error happens with not much info (logs).
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 a success. Yet all of the AWS Amplify exceptions