AWS Builder Center

My First Time Experience Using AWS

i used AWS for backend development and AI for the Hackathon project in First Commit

Today I finally deploy my project BarRaiser on AWS and I want to share my first time experience. I am trying to master backend development and cloud so I decided to use serverless AWS for this. I thought it will be very easy but I face so many error during the process.
First I make my frontend with Next.js and try to host it on AWS Amplify. But the build failed many times because of some pnpm lockfile and background script error. I was very confused why it is failing because it work on my local computer. I have to change the amplify config to ignore scripts and update the lockfile in my terminal. After that it finally build but it show me a blank welcome screen. I realize Amplify think my app is a simple website not a server rendered app. I change the framework setting to SSR and it start working.
Then the real struggle begin with the backend. I make Lambda functions and API Gateway and DynamoDB to save the interview sessions with Amazon Bedrock AI. But when I test my api it keep giving me 404 not found error. I check everything and realize I was using GET method instead of POST method and I forgot to put the exact route path. When I fix it the api return 200 ok status and I felt so happy
At the very end my live site was still showing old mock data instead of the real AI response. I forgot to connect the environment variable in my api file to stop using the mock data. I quickly update my code to use the real AWS url and push to github. The pipeline run again and my project is finally live on internet for my hackathon submission.
This was very stressful but a good first step to learn devops and cloud for my future off campus placements.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article