MyAllocator OTA AWS Lambda API
Python web service using AWS Lambda and Amazon API Gateway. This implements the OTA Build-To-Us API from myallocator and cloudbeds. This minimal sample (paired with an AWS Multi-AZ RDS instance) allows creating an HA API endpoint to service the integration between your OTA channel and cloudbeds.
Pre-requisites for building
- Python 3.6
- AWS CLI installed and configured
- S3 bucket for deployment package
Building the package
Using the steps in buidspec.yml, you can run similar commands on a Linux system to create the environment, run the tests & generate the deployment package.
Pre-requisites for deployment
- AWS Account with VPC
- MySQL database deployed with schema from schema.sql
Deploying
Using the generated template-export.yml, you can use AWS CloudFormation to create the stack. The stack will generate the Lambda function, the API Gateway and wire it all up.