After deploying your backend on AWS using SAM CLI and CloudFormation, the next crucial step is to check the resource status and review backend logs to ensure all components are functioning correctly.
Check CloudFormation Stack and Resource Status
sam-app
).CREATE_COMPLETE
or UPDATE_COMPLETE
, your deployment was successful.If you see a status like ROLLBACK
or FAILED
, click on the Events tab to view error details and identify the root cause.
View Lambda Logs with CloudWatch
In the AWS Console, go to Lambda → select your deployed function.
Scroll down and click on the Monitor tab, then select View CloudWatch logs to access detailed logs.
Scroll down and click on the Log streams tab, then select the first log stream.
Each time a request is made (GET/POST, etc.), Lambda writes logs to CloudWatch. Here you can:
Verify API Gateway Functionality
In the AWS Console, go to API Gateway → select the API you just created.
Go to Stages → select the relevant stage → choose prod
.
Copy the Invoke URL to prepare for testing with Postman/curl in the next step.
Once you’ve verified that all resources are functioning properly and there are no critical errors in the logs, you’re ready to test your backend API using Postman or integrate with your frontend!