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
0
votes
2 answers

Running Micronaut Scheduled Task on Fargate

I've deployed a Micronaut application on AWS ECS Fargate container. Inside my application I have a couple of scheduled jobs that I have configured to run once a day. After deploying the application, the scheduled task does kick off. I've added…
0
votes
0 answers

Specifying Micronaut Lambda application profile

According to the AWS Lambda documentation, one can pass environment variables when creating a Lambda. If Lambda is implemented as a spring boot application, setting the SPRING_PROFILES_ACTIVE variable will activate the specified profile. How can we…
0
votes
0 answers

Micronaut application AWS Lambda - Http Requests and Responses filter

I am running a Micronaut app in an AWS Lambda as explained here : https://guides.micronaut.io/latest/mn-application-aws-lambda-java11.html How am I supposed to implement a Request/Response filter ? I want a functionality like a good old Servlet…
0
votes
1 answer

Micronaut returns the empty body

In my "Hello World" native(GraalVM) AWS Lambda application Micronaut returns the empty body instead of serializing a map as JSON. Here is the code @Controller public class BookController { private static final DynamoDbClient ddb =…
corsair
  • 658
  • 5
  • 14
0
votes
1 answer

How to connect onprem oracle DB from Micronaut based AWS Lambda

I am trying to get on micronaut for my Java based serverless (AWS lambda) development. First use case is connect and query onpremise oracle DB (for read only operations) to enrich the data and then call some soap services. This question is about…
user937967
  • 53
  • 1
  • 8
0
votes
1 answer

Micronaut AWS lambda Application "Class not found: io.micronaut.function.aws.proxy.MicronautLambdaHandler"

I created an Micronaut AWS lambda application. and uploaded the shadow zip file. And when I test the lambda function I get Class not found: io.micronaut.function.aws.proxy.MicronautLambdaHandler I did a ./gradlew assemble and then uploaded the…
Ravi
  • 1,179
  • 6
  • 13
0
votes
1 answer

Micronaut Lambda Native Image Not Reading Custom Handler

By default, Micronaut's handler is the class MicronautLambdaHandler. But on the Micronaut guide it says that The main API you will interact with is AbstractMicronautLambdaRuntime. An abstract class which you can extend to create your custom runtime…
berty
  • 160
  • 9
0
votes
1 answer

Micronaut Controller How To Return A No Content Response Status

I'm learning Micronaut for our app that will be deployed to AWS Lambda. One of the endpoint needs to return a No Content. I tried different approaches but still not getting no content response. This one returns 404 Not Found on…
berty
  • 160
  • 9
0
votes
0 answers

401 with declarative Http Client on the API URL with @Secured(SecurityRule.IS_ANONYMOUS) annotation

When we add the Micronaut security all the URLs are protected. while using the @Secured(SecurityRule.IS_ANONYMOUS) annotation still facing the 401 exception public interface ISubCategoryOperation { @Get("/{categoryId}/sub-category") …
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
0 answers

NoSuchBeanException when invoking AWS lambda written with Micronaut

I've written a simple lambda in Kotlin using https://www.raywenderlich.com/5777183-write-an-aws-lambda-function-with-kotlin-and-micronaut as a guide. My tests pass locally. However, upon uploading the fat jar generated by shadow to AWS, with runtime…
0
votes
1 answer

How do you load the application context into MicronautLambdaContainerHandler when running a MicronautTest?

How do you load the application context into MicronautLambdaContainerHandler when running a MicronautTest? I see I can inject the ApplicationContext into my test, and I can see that the MicronautLambdaContainerHandler takes a…
Knut Knutson
  • 163
  • 2
  • 8
0
votes
1 answer

Micronaut FunctionInitializer override application properties

@Singleton public class TestFunction extends FunctionInitializer { Logger log = LoggerFactory.getLogger(TestFunction.class); public TestFunction() { } public String execute() { return "Hello"; } } I want to override…
Sujith C P
  • 105
  • 1
  • 11
0
votes
0 answers

Invalid escaped json response from micronaut-graphql when use with micronaut-function-aws-api-proxy

The graphql endpoint return the following invalid json response: [ "{\"data\":{\"findById\":{\"lastName\":\"Doe\",\"firstName\":\"John\",\"gender\":\"MALE\"}}}" ] The correct one should be: { "data": { "findById": { …
limcheekin
  • 144
  • 1
  • 12
0
votes
2 answers

MICRONAUT_FUNCTION_NAME Environment variables is not working in AWS lambda

I want to write multiple function inside our app so instead of putting config in application.yml I use MICRONAUT_FUNCTION_NAME environment variable in AWS lambda but I keep receiving the error No function found for name: xxx:…
0
votes
0 answers

AWS: Move message to Dead letter queue while preserving meta information

I am trying to move the message to dead letter queue in AWS if there is an exception while handling the message. Now I am deleting the original message and sending it to DLQ explicitly. However, while doing this I am losing the message meta…
Not a bug
  • 4,286
  • 2
  • 40
  • 80