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
15
votes
1 answer

Getting cognito user pool username from cognito identity pool identityId

I am using AWS Congito User Pools for account management with a Cognito Identity Pool that has this User Pool as the Identity Provider. I'm using this to control access to an API through API Gateway that sends requests to Lambda. My Lambda is…
8
votes
3 answers

Micronaut serverless application using DynamoDB and Graal custom runtime throws Cannot construct instance of com.amazonaws.partitions.model.Partitions

SAMPLE PROJECT AVAILABLE HERE: https://github.com/codependent/micronaut-aws-lambda-proxy-graal I have a Micronaut application deployed on Amazon AWS as a Lambda function. It is compiled into a GraalVM native image and run using an AWS Lambda Custom…
codependent
  • 23,193
  • 31
  • 166
  • 308
5
votes
0 answers

How to handle multipart/form-data file uploads using micronaut-function-aws-api-proxy

I'm using micronaut 1.1.0.RC2 and micronaut-function-aws-api-proxy 1.1.0.RC3 within an AWS API Gateway proxy to a Kotlin Lambda function. The micronaut aws api proxy works fine for all of my API functions except for the file upload route. Class and…
4
votes
1 answer

How do I disable the http server in a micronaut application

I have a micronaut application that is supposed to run a SQS listener in one container and a regular HTTP server on the other. How do I achieve this via configuration? I can use the following app properties to enable/disable the…
4
votes
0 answers

How to fix "docker-java-stream" java.lang.UnsatisfiedLinkError: Error looking up function 'write'"? - Windows10 + GraalVM + Docker + Micronaut

I am very new to this, so please bear with me if it is too basic. I am trying to run java based AWS lambda functions in GraalVM by using micronaut framework and following their guide from here. I installed below in my Windows 10 PC. GraalVM &…
3
votes
2 answers

Adding micronaut serde fails starting application as serverless with lanch class as io.micronaut.function.aws.runtime.MicronautLambdaRuntime

micronaut serde to support serialization and deserialization on GraalVM Native Image. But after adding it the lambda stopped working with below error : Request loop failed with: Error decoding HTTP response body: No bean introspection available for…
2
votes
0 answers

Unable to fetch the custom properties from AWS secret manager for micronaut application invoked by AWS lambda function

I am getting below error : Unable to execute HTTP request: Connect to secretsmanager.eu-central-1.amazonaws.com:443 [secretsmanager.eu-central-1.amazonaws.com/ipadress, secretsmanager.eu-central-1.amazonaws.com/ipadress] failed: connect timed out",…
2
votes
3 answers

Micronaut with AWS Lambda and SQS

I have created simple application with Micronaut, and Graalvm and want to deploy it to the AWS Lambda and get it triggered from the SQS and process the messages. But somehow, it is not working as expected. To build this application, I use…
2
votes
0 answers

Can't mock Beans in Micronaut Serverless Function tests using Mockito

I am super new to Micronaut and I am trying a couple of things out. My end goal is to be able to deploy a Micronaut Serverless Function, built as a Native Image on AWS Lambda. I have gone through the documentation, however, I am struggling to mock…
2
votes
1 answer

AWS auth when debugging Java REST API via Postman locally

I have recently taken over an existing Java REST API (written with Micronaut). The API is intended to be deployed on AWS, running "serverless" with Lambda and has Cognito for auth. For dev, I obviously just want to just run the API locally and debug…
Roper
  • 109
  • 5
2
votes
0 answers

Publishing messages to AWS SNS with Micronaut and Kotlin

I'm tryin to send a list of objects to an SNS topic, with Micronaut and Kotlin. Following the documentation https://micronaut-projects.github.io/micronaut-aws/latest/guide/#sdkv2 I added…
yokodev
  • 1,266
  • 2
  • 14
  • 28
2
votes
0 answers

Injecting parameters from AWS Secrets Manager as configuration

I'm trying to retrieve parameters stored in AWS Secrets Manager to inject them into bean using @Value annotation. For example, when parameters are described in application.yml I can just type @Value("${path.to.parameter}") to inject them. Found…
2
votes
2 answers

How to use mocks with MicronautLambdaHandler in a JUnit class annotated @MicronautTest?

I'd like to mock out collaborators as documented here with my MicronautLambdaHandler application, though if you just instantiate MicronautLambdaHandler by calling its constructor, it apparently won't pick up anything from your test…
Max
  • 4,882
  • 2
  • 29
  • 43
2
votes
1 answer

Micronaut GraalVM Native Image: Lambda fails with an error "Error: fork/exec /var/task/bootstrap: no such file or directory"

I tried bootstraping "Micronaut Function as GraalVM Native Image" example (text guide is here) with cloning the complete example and deploying it into AWS Lambda. On every invocation lambda fails with the same error (from CloudWatch Logs): Error:…
2
votes
1 answer

How to obtain "requestContext" data in a Micronaut API implementation being part of a AWS Lambda Proxy

In an AWS Lambda Proxy (being an integration in an API gateway which uses Cognito authorization) I'd like to obtain the user ID when handling a request. The Lambda is written in Java using Micronaut. The same Lambda is used as the integration of…
leemes
  • 44,967
  • 21
  • 135
  • 183
1
2 3 4