caseyfitz / cookiecutter-disco-pie Goto Github PK
View Code? Open in Web Editor NEWDread deploying your API? Use Cookiecutter DiscoPie: A project template for deploying containerized, serverless, FastAPI applications (on AWS...for now).
Dread deploying your API? Use Cookiecutter DiscoPie: A project template for deploying containerized, serverless, FastAPI applications (on AWS...for now).
Try to remove all need for visiting the console by using awscli
. Most of this is done, until we get to the API stage.
Automating role creation
lambda-role
and retrieve AWS_LAMBDA_ROLE_ARN
AmazonAPIGatewayInvokeFullAccess
-enabled role for invoking API and retrieve credentials, something like this?Automating API stage
--policy
to secure?POST
method--event-source-arn
?Notes
Makefile
into shell script.env
for downstream useAfter #5, move everything into python.
jq tool is required for the make auto_deploy
, make deploy_api
and make create_lamda_function
with out it these 3 functions will not run sucessfully.
aws: error: argument --role: expected one argument
Delete the
still doing this in console. But that may be a good protection against accidental blow ups... maybe force user confirmation otherwise.
After #7, templatize with Cookiecutter!
https://cookiecutter.readthedocs.io/en/1.7.3/first_steps.html#your-first-cookiecutter
As first pass, just propagate name. Later, could consider things like number of routes, s3 linking, etc.
Just need to add --profile
flag to everything in cli (or build in directly in #6)
Did not do in #5. Could be useful. Is currently explained as prerequisite in README.
Rather than raw aws cli, SAM can be used to simplify deployment, but it doesn't look like there is good python support (nor can I find any refs in boto3 docs) and recent examples still use CLI
https://acloudguru.com/blog/engineering/packaging-aws-lambda-functions-as-container-images
After #6, implement typer
cli https://typer.tiangolo.com/tutorial/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.