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 Answer
0

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

profile pictureAWS
EXPERT
Uri
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions