Skip to main content

template, plz check

Project description

Template for sam nbdev

Summary description here.

Install

pip install aws-sam-cli nbdev pynamodb-dax

to configure aws credentials run brew install awscli then aws configure you can put the IAM user keys in

How to use

  1. fill in all the notebooks in the folder nbs
  • put #export on top of any cells you want to export and #default_exp filename on top of the notebook (see exampleget.ipynb)
  • put #hide on top of the cells you dont want to include in python package
  • change nbs_path from . to nbs in settings.ini
  • run make build
  1. edit sam template
  • template as necessary, file template.yaml
  • test your sam template using make test
  1. put library to install with pip into layerRequirements.txt or samRequirements.txt

  2. only for the first run:

  • run sam build then sam deploy --guided
  • run make test
  1. editing the app router
  • edit the file app/app.py
  • put this on the top line from src.<your nb name> import <your lambda function in nbdev>
  • dont forget to put #export on top of the cells you want to include in the product
  1. (optional) to deploy using github action, edit the deploy.yml file as appropriate in most cases you should only edit the last line

  2. go to cloudformation console to see the result

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

globalPrimePay-0.0.3.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

globalPrimePay-0.0.3-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page