New Lambda Function (e.g., Form Service)
New Lambda Function (e.g., Form Service)
TBD: Design a new Lambda function to handle form submissions and data retrieval for a web
- Customer List Retrieval: A Lambda function will retrieve a customer list from an S3 bucket
based on the country code.
- Process: Use the country code to find the country timezone code (e.g., Kenya to Africa/Nairobi). Check the S3 bucket for organisation.json, use the timezone attribute to get an API token for timezones, call the API server with the token, and retrieve organisation names to render the customer list.
- Asset List Retrieval: A Lambda function will retrieve an asset list based on the selected
customer.
- Process: Use the customer API key to get the list of assets and render the asset names ( e.g., rego) for display on the frontend.
- Validation: The Lambda function will validate the form data before submission.