Creates an API backed by a lambda to convert a notebook to HTML. The Synapse portal calls the API to display a a preview of a notebook file.
This is a light wrapper around nbconvert, packaged to deploy as an AWS Lambda function. Note, we used python-lambda as a starting point.
The deployment uses the AWS CDK to create the function (packaged as a docker container) and associated API Gateway.
To deploy:
- the API endpoint is 'api-[dev|prod].synapse.org', update the endpoints and certificate ARNs in cdk/nbconvert_stack.py as needed
- cdk deploy --region us-east-1 --profile <profile_name> --context fct_stack=[dev|prod]