Questions tagged [micronaut-aws]

Projects using the specific Micronaut integration with Amazon Web Services (AWS)

Projects using the specific Micronaut integration with Amazon Web Services (AWS). The project source is available at Github.

48 questions
2
votes
0 answers

Micronaut: Loggers not appearing in AWS Cloudwatch & Java application not running in local

I have a Micronaut microservice which had to be upgraded with the following version changes: Micronaut bom version: 1.3.1 to 1.3.4 Gradle: 5.1.1 to 5.3 Graal VM:19.2.1 I am building the native-image using the buildspec.yml as given below:…
2
votes
1 answer

How should I configure the properties stored in aws parameter store into micronaut using application.yml

I want to use properties from aws parameter store in my micronaut application using the built in micronaut discovery client, but it's not properly documented that how to configure and inject the individual parameters after mentioning the…
2
votes
0 answers

Graal native image calling https throws Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

I am generating a Graal native image that makes an https call. The problem is it throws an exception when trying to make the call: @Controller("/") public class ExampleController { private static final Log LOG =…
codependent
  • 23,193
  • 31
  • 166
  • 308
1
vote
1 answer

HttpClientResponseException: Error decoding HTTP response body: Error decoding stream for type S3EventNotification

I am trying to create an AWS Lambda Function using micronaut which will be triggered bt s3 events. However, when I test the function using console, I am receiving the following error : Caused by:…
Paras
  • 3,191
  • 6
  • 41
  • 77
1
vote
1 answer

How to Log AWSRequestId with Micronaut Lambda Application Native Image

Based on this guide about logging AWSRequestId, I can add %X{AWSRequestId} on my logback.xml to print the request id on my lambda function. On the example, the method that adds this key on MDC is populateMappingDiagnosticContextValues of class…
berty
  • 160
  • 9
1
vote
1 answer

HttpClient throws null pointer exception in my class which extends MicronautRequestHandler

I am getting NullPointerException for httpClient in the code mentioned below: @Introspected public class CustomEventHandler extends MicronautRequestHandler, APIGatewayV2HTTPResponse> { private static final Logger LOGGER =…
1
vote
1 answer

RedisCommandTimeOutException while making connecting micronaut lambda with elastic-cache

I am trying to create a lambda using Micronaut-2 connecting to elastic-cache. I have used redis-lettuce dependency in the project with the following configuration and encryption on the transaction is enabled in the elastic-cache config. redis: …
Arpit
  • 521
  • 2
  • 8
  • 22
1
vote
0 answers

Micronaut serverless application with DynamoDB and Graal java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.ClientConfiguration

I'm working on a application which are running on AWS lambda and using Micronaut and GraalVM. I started using the example provided by AWS in the AWSLabs GitHub - PetStore - Micronaut . If I just clone this repo and using the SAM model, I'm able to…
1
vote
0 answers

Micronaut data, GraalVM, AWS fails on build

I start of by this guide: https://guides.micronaut.io/micronaut-function-graalvm-aws-lambda-gateway/guide/index.html Which works and creates an API deployable in a local SAM instance. In my real project I need access to JPA, database so I add the…
TomRob
  • 11
  • 3
1
vote
1 answer

Micronaut is giving logging error when trying to create SNS client

Steps to reproduce: mn create-app example.micronaut.complete --features aws-api-gateway-graal add dependency implementation 'com.amazonaws:aws-java-sdk-sns:1.11.656' modify index() function which was automatically created by mn-cli @Get("/ping") …
1
vote
1 answer

Micronauts AWS API Gateway Authorizer JSON output issue

I've written a simple lambda function in Micronauts/Groovy to return Allow/Deny policies as an AWS API gateway authorizer. When used as the API gateway authorizer the JSON cannot be parsed Execution failed due to configuration error: Could not…
0
votes
0 answers

Unable to initialise ObjectMapper in micronaut library subproject

I have multi-project setup in which there are following subprojects: common data domain utility The projects are build using gradle and coded in Kotlin All of the above projects are defined as micronaut libraries. data depends upon common domain…
sshntt
  • 191
  • 1
  • 13
0
votes
0 answers

Micronaut Framework - Connect to AWS secret manager is failed when calling from AWS lambda

I have stored values in AWS secret manager using secret name : config/awsservices/db. I want to fetch these values using Micronaut framework. below the the configuration - bootstrap.yml micronaut: config-client: enabled: true application: …
vishal
  • 309
  • 3
  • 6
  • 21
0
votes
0 answers

Can you set S3 path in Micronaut Key Store Path?

I have a lambda application that uses Micronaut 3.9.x (Migrated from Micronaut 1) which uses HttpClient and has a SSL configuration that points to a certificate inside my resources folder. I have the variable micronaut.http.client.ssl.key.store.path…
0
votes
0 answers

How to consume messages from AWS Standard SQS using JMSListener sequentially?

I have developed a standard SQS consumer in Micronaut application (Java). There will be only one consumer instance for this queue. Producer can produce n number of messages at any moment. But I want to process those messages from SQS in sequential…
Jignesh M. Khatri
  • 1,407
  • 1
  • 14
  • 22