Create a Post and Get API as an Amazon S3 proxy in API Gateway

0

How to integrate API Gateway and S3 Bucket using CDK. I have created in CDK endpoint in Kotlin. now I need to integrate s3 .

** Kotlin Code :** public static void setupRoutes(HttpLambdaIntegration lambdaIntegration, HttpApi httpApi) { httpApi.addRoutes(AddRoutesOptions.builder() .path("/{proxy+}") .methods(Collections.singletonList(HttpMethod.ANY)) .integration(lambdaIntegration) .build()); }

**how to add s3 in above code. **

**Propose : Need to store files in s3 using API Gateway **

1 Antwort
0

Did you try looking at the serverlessland.com patterns? specifically: https://serverlessland.com/patterns/apigw-s3?

profile pictureAWS
EXPERTE
Uri
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen