micronaut-projects / micronaut-aws

Projects specific to integrating Micronaut and Amazon Web Services (AWS)
Apache License 2.0
85 stars 79 forks source link

Support Kinesis/SNS/S3/Cognito/DynamoDB functions in Micronaut Java and Groovy #1196

Open graemerocher opened 6 years ago

graemerocher commented 6 years ago

We should support Kinesis/SNS/S3/Cognito/DynamoDB functions in Micronaut

rvanderwerf commented 6 years ago

should I break these out into tasks for each one? Alexa - needs RequestEnvelope/ResponseEnvelope signature - moved to micronaut-projects/micronaut-core#268 Kenesis - needs signature with KinesisEvent S3 - needs signature with S3Event SNS - needs signature with SNSEvent Cognito - needs signature to handle class CognitoEvent DynamoDB - DynamodbEvent

I have some examples from the Grails & AWS talk here: https://github.com/rvanderwerf/kinesisLambdaConsumerDemo.git

Basically we need to support the events covered in aws-lambda-java-events

amazon docs: https://docs.aws.amazon.com/lambda/latest/dg/java-programming-model.html https://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-req-resp.html

Maybe we can make one FunctionTransform and FunctionScript and executor class for most of them (at least non-alexa ones) and use an annotation or smomething like @SNSFunction or @KenesisFunction, @CognitoFunction that sets up the right signatures and runs them (Or just Having a keyword in the function name?)???

rvanderwerf commented 6 years ago

going to break this out into 2 tickets I think I have another for alexa anyways I opened. The issue for the Alexa Lambda stuff is micronaut-projects/micronaut-core#268

zhangsantu commented 6 years ago

hi: this is problem,give me some demo! thanks! ERROR io.micronaut.http.server.netty.RoutingInBoundHandler - Unexpected error occurred: No transaction manager configured org.springframework.transaction.TransactionSystemException: No transaction manager configured at io.micronaut.spring.tx.annotation.TransactionInterceptor.resolveTransactionManager(TransactionInterceptor.java:119) at io.micronaut.spring.tx.annotation.TransactionInterceptor.intercept(TransactionInterceptor.java:63)

musketyr commented 5 years ago

actually, I'm currently working on rewriting https://github.com/agorapulse/grails-aws-sdk for Micronaut

musketyr commented 2 years ago

I can see this is very old one but the support is already here

https://agorapulse.github.io/micronaut-aws-sdk/