-
Notifications
You must be signed in to change notification settings - Fork 27
Sv 140 - add FastAPI to lambda and a GET route for stac urls #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jbants
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Good idea!
Some minor naming change stuff
| ) | ||
|
|
||
| # Defines an AWS Lambda resource | ||
| validator_lambda = _lambda.Function( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave this as validator lambda.
| from aws_cdk import core as cdk | ||
|
|
||
|
|
||
| class ValidatorCdkStack(cdk.Stack): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave this as ValidatorCDKStack
| validator_lambda = _lambda.Function( | ||
| fast_api_lambda = _lambda.Function( | ||
| self, | ||
| "STACHandler", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
STACValidator
| apigw.LambdaRestApi( | ||
| self, | ||
| "Endpoint", | ||
| handler=validator_lambda, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leave as is
This implements openapi documentation by default which is one of the issues for a 2.0.0 release. It also provides better routing. There is a demo running here: https://u13x8zu0t0.execute-api.us-west-2.amazonaws.com/prod/docs
Resolves: #140