Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Latest commit

 

History

History
23 lines (14 loc) · 958 Bytes

README.MD

File metadata and controls

23 lines (14 loc) · 958 Bytes

Build and Deploy To AWS

To build and deploy the Rust program, simply run the following command in your terminal bash build-deploy.sh

Once the deployment succeeds, take notice of the outputs section in your cli and note down the name of the lambda function that has just been created in your account. You will need this to send test events to the newly created lambda from your cli.

Test Lambda Function

Open the test-event.sh script and replace <your_lambda_function_name> with the name of your lambda function as noted in the Build and Deploy section above. Once that is done, you can now send a test event to the lambda using the following command: bash test-event.sh

If the event is successfully processed, output that resembles the one shown below will be stored in a filed called output.json

   {
   "message":"Hi Leon Ticharwa , welcome to rust in the cloud!",
   "request_id":"xxxx-xxx-xxx-xxxx"
   }