{ "info": { "author": "Neeraj Kashyap", "author_email": "neeraj@simiotics.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python" ], "description": "# lambada\nManage AWS Lambda functions using a Simiotics Function Registry\n\n## Install\n\n```\npip install -U simiotics-lambada\n```\n\n## Use\n\nThis section lets you try out `lambada` using our\n[example `hello` function](./examples/hello/hello.py).\n\nFirst, export your `SIMIOTICS_FUNCTION_REGISTRY` environment variable. This tells `lambada` which\nSimiotics Function Registry to work with. If you do not have a private Simiotics account, you can\nuse our free, public, and totally open registry:\n```\nexport SIMIOTICS_FUNCTION_REGISTRY=registry-alpha.simiotics.com:7011\n```\n\nMake sure that your AWS credentials are available either by exporting `AWS_ACCESS_KEY_ID` and\n`AWS_SECRET_ACCESS_KEY` or by ensuring that the profile you want to use is `default` in your\nAWS credentials file, or by exporting `AWS_PROFILE`. If you are not familiar with AWS\nauthentication, you can read more here:\nhttps://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html\n\nDecide on a key under which you would like to register the `hello` function into the Simiotics\nFunction Registry. For example:\n```\nHELLO_KEY=hello-$(date -u +%s)\n```\n\nRegister the function against the Simiotics Function Registry using `lambada`:\n```\nlambada register --key $HELLO_KEY \\\n --code examples/hello/hello.py \\\n --handler hello \\\n --requirements examples/hello/requirements.txt\n```\n\nCheck that the function was successfully registered (if the output of the following command is\nempty, there is a problem):\n```\nlambada list | grep \"$HELLO_KEY\"\n```\n\nCreate an AWS IAM role capable of executing the `hello` function and logging to CloudWatch:\n```\nlambada create_role --key $HELLO_KEY --name iam-lambada-demo\n```\n\nDeploy the function as an AWS Lambda:\n```\nlambada deploy --key $HELLO_KEY --name lambda-lambada-demo\n```\n\nThis should return an AWS Lambda ARN of the form:\n```\narn:aws:lambda:::function:lambda-lambada-demo\n```\n\nNow you can invoke the deployed Lambda using the AWS command-line interface:\n```\nOUTFILE=$(mktemp)\naws lambda invoke --function-name lambda-lambada-demo \\\n --payload '{\"target\": \"Sophia\"}' \\\n $OUTFILE\ncat $OUTFILE\nrm $OUTFILE\n```\n\nTo take down the AWS Lambda:\n```\nlambada down --key $HELLO_KEY\n```\n\nThis only removes the AWS Lambda. It doesn't delete the IAM role. If you would like to get rid of\nthat, as well:\n```\nlambada down --key $HELLO_KEY --teardown\n```\n\nKick back, [enjoy some smooth tunes](https://www.youtube.com/watch?v=csaUvkYOkLY), and let the\nLambdas proliferate.\n\n## Support\n\nIf you experience any problems with this tool, please add an issue on this repository.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/simiotics/lambada", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "simiotics-lambada", "package_url": "https://pypi.org/project/simiotics-lambada/", "platform": "", "project_url": "https://pypi.org/project/simiotics-lambada/", "project_urls": { "Homepage": "https://github.com/simiotics/lambada" }, "release_url": "https://pypi.org/project/simiotics-lambada/0.2.0/", "requires_dist": [ "boto3", "simiotics" ], "requires_python": "", "summary": "Manage AWS Lambda functions using a Simiotics Function Registry", "version": "0.2.0", "yanked": false, "yanked_reason": null }, "last_serial": 6007133, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "ffb7dbb1c609c02ea8f7933debef6dc1", "sha256": "d083228c94d381e909def3190e6b93e3cae034e79bdb6d82efdc6807e266b702" }, "downloads": -1, "filename": "simiotics_lambada-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "ffb7dbb1c609c02ea8f7933debef6dc1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10021, "upload_time": "2019-10-07T19:48:24", "upload_time_iso_8601": "2019-10-07T19:48:24.896799Z", "url": "https://files.pythonhosted.org/packages/3f/a0/af0f6f7d661e07212deb03a3ea869c6266700eceb82345177505289a86b5/simiotics_lambada-0.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "4e2cbcde4853e8b0cf39208868a46f3d", "sha256": "722d2132ccd16e67d3ef27b6d10cf7532bebb415c3a104bc55731ca769e3f841" }, "downloads": -1, "filename": "simiotics-lambada-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4e2cbcde4853e8b0cf39208868a46f3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4633, "upload_time": "2019-10-07T19:48:26", "upload_time_iso_8601": "2019-10-07T19:48:26.868295Z", "url": "https://files.pythonhosted.org/packages/5c/c8/bba1a845e5f642b0cf587c542805dfbfa9d74e7310f6b1112359668c8b77/simiotics-lambada-0.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "50f27c1d672cbb93491be01ad9649f7f", "sha256": "9f093f99ca5905fe5e52a7245608463bab4ec5c30e4036247e66f607f0d88651" }, "downloads": -1, "filename": "simiotics_lambada-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "50f27c1d672cbb93491be01ad9649f7f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11167, "upload_time": "2019-10-07T20:18:47", "upload_time_iso_8601": "2019-10-07T20:18:47.820957Z", "url": "https://files.pythonhosted.org/packages/cb/0b/15746b95a7eef8a4ed596570c7796c24671c3d46db10cd2c205b984b0b3d/simiotics_lambada-0.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "08b47435538c20af9a61e5f6175e2c6c", "sha256": "82e48fe461f90aa4f5b51b6e7e36e3b96fce376d0165c4cb582b25c241b36ee1" }, "downloads": -1, "filename": "simiotics-lambada-0.1.1.tar.gz", "has_sig": false, "md5_digest": "08b47435538c20af9a61e5f6175e2c6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5927, "upload_time": "2019-10-07T20:18:49", "upload_time_iso_8601": "2019-10-07T20:18:49.111125Z", "url": "https://files.pythonhosted.org/packages/60/ed/58101f77559837e62f043eb2195a06a0efa43c10ca6c9f7cad695a6059a1/simiotics-lambada-0.1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f27d9a3767a7d783008f84bce2ba4162", "sha256": "0cc1cb6dd373eb2f7dd1622b2953a396b7e052c9a3c7bc2e6cbb005706880527" }, "downloads": -1, "filename": "simiotics_lambada-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f27d9a3767a7d783008f84bce2ba4162", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12238, "upload_time": "2019-10-21T12:50:57", "upload_time_iso_8601": "2019-10-21T12:50:57.196585Z", "url": "https://files.pythonhosted.org/packages/2c/01/ab17d2fccadbaad7619bfc1cb1995e858cd0ff65306300c99072a2c2d38e/simiotics_lambada-0.2.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "68dc7645c27960ac35ae43a8c3f73b23", "sha256": "ac28b03fd0270151103fe4ae308801d3754ad89996733bb97ec2dcc062ed5830" }, "downloads": -1, "filename": "simiotics-lambada-0.2.0.tar.gz", "has_sig": false, "md5_digest": "68dc7645c27960ac35ae43a8c3f73b23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7451, "upload_time": "2019-10-21T12:50:59", "upload_time_iso_8601": "2019-10-21T12:50:59.046548Z", "url": "https://files.pythonhosted.org/packages/37/14/39856b2af5ceb891182b2a8dbd66508aafbba21753cac582e92a0bf2ea88/simiotics-lambada-0.2.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f27d9a3767a7d783008f84bce2ba4162", "sha256": "0cc1cb6dd373eb2f7dd1622b2953a396b7e052c9a3c7bc2e6cbb005706880527" }, "downloads": -1, "filename": "simiotics_lambada-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f27d9a3767a7d783008f84bce2ba4162", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 12238, "upload_time": "2019-10-21T12:50:57", "upload_time_iso_8601": "2019-10-21T12:50:57.196585Z", "url": "https://files.pythonhosted.org/packages/2c/01/ab17d2fccadbaad7619bfc1cb1995e858cd0ff65306300c99072a2c2d38e/simiotics_lambada-0.2.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "68dc7645c27960ac35ae43a8c3f73b23", "sha256": "ac28b03fd0270151103fe4ae308801d3754ad89996733bb97ec2dcc062ed5830" }, "downloads": -1, "filename": "simiotics-lambada-0.2.0.tar.gz", "has_sig": false, "md5_digest": "68dc7645c27960ac35ae43a8c3f73b23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7451, "upload_time": "2019-10-21T12:50:59", "upload_time_iso_8601": "2019-10-21T12:50:59.046548Z", "url": "https://files.pythonhosted.org/packages/37/14/39856b2af5ceb891182b2a8dbd66508aafbba21753cac582e92a0bf2ea88/simiotics-lambada-0.2.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }