3

To start I just want to say that I'm really new to AWS overall (1-2 weeks). So I might not think correct from start.

I'm working on an app where I want to click a button in JSX and trigger a Lambda function that gets data from a dynamodb table and shows it in the UI.

I'm writing the infrastructure as code using aws cdk. How should I face this? Do you have any guides that I can follow?

1 Answer 1

10

Welcome! Please have a look on this guide.

With AWS, it's a best practice to create an AWS API Gateway, which acts as your HTTP/HTTPS/API web server.

enter image description here

Within this API gateway, you can integrate a Lambda function with a route (e.g. GET /users), where that Lambda function grabs the data from AWS DynamoDB process it as you wish and returns the output.

To integrate it with your code, you create an HTTP GET/POST request to the API gateway URL.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. I will look into this guide!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.