{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Operating System :: Unix", "Topic :: Utilities" ], "description": "\n\n[]()\n\n#### Installation\n```bash\n$ [sudo] pip install templates-s3\n```\n\n#### Pros\n+ store templates on S3 - no need rebuild docker image\n\n#### How it works\n`templates/` hard-coded folder\n\nscripts:\n+ create full-access/read-only user and credentials\n+ upload/download `templates/`\n\nhard-coded environment variables names:\n+ `AWS_S3_TEMPLATES_BUCKET`\n+ `AWS_S3_TEMPLATES_USER`\n+ `AWS_S3_TEMPLATES_ACCESS_KEY_ID`\n+ `AWS_S3_TEMPLATES_SECRET_ACCESS_KEY`\n\n#### Scripts usage\ncommand|`usage`\n-|-\n`templates-s3` |`usage: templates-s3 command [args]`\n`templates-s3-create-bucket` |`usage: templates-s3-create-bucket bucket`\n`templates-s3-create-full-access-env` |`usage: templates-s3-create-full-access-env bucket`\n`templates-s3-create-read-only-env` |`usage: templates-s3-create-read-only-env bucket`\n`templates-s3-download` |`usage: templates-s3-download`\n`templates-s3-upload` |`usage: templates-s3-upload`\n\n#### Examples\n`Makefile`, create env\n```bash\nTEMPLATES_BUCKET:=BUCKET_NAME\nall:\n test -s .env.s3.templates || templates-s3-create-full-access-env $(TEMPLATES_BUCKET) > .env.s3.templates\n test -s .env.prod.templates || templates-s3-create-read-only-env $(TEMPLATES_BUCKET) > .env.prod.templates\n```\n\nupload `templates/` to S3 \n```bash\nset -o allexport\n. .env.s3.templates || exit\n\ntemplates-s3-upload\n```\n\n`Dockerfile` \n```Dockerfile\nENTRYPOINT [\"/bin/sh\",\"/entrypoint.sh\"]\n```\n\n`entrypoint.sh`\n```bash\ntemplates-s3-download\n...\n```\n\n`ansible-playbook.yml`\n```yml\n...\n tasks:\n - name: task_name\n docker_container:\n ...\n env_file: \".env.prod\"\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/andrewp-as-is/templates-s3", "keywords": "templates s3", "license": "", "maintainer": "", "maintainer_email": "", "name": "templates-s3", "package_url": "https://pypi.org/project/templates-s3/", "platform": "", "project_url": "https://pypi.org/project/templates-s3/", "project_urls": { "Homepage": "https://github.com/andrewp-as-is/templates-s3" }, "release_url": "https://pypi.org/project/templates-s3/2019.8.11/", "requires_dist": null, "requires_python": "", "summary": "store templates on S3", "version": "2019.8.11" }, "last_serial": 5661904, "releases": { "2019.8.11": [ { "comment_text": "", "digests": { "md5": "4db32f70af74748fbaa05d6c7cf4a765", "sha256": "79535a9b6560cd36575bc7a8c19b089300826fdb93b055e088e8734a734d17ea" }, "downloads": -1, "filename": "templates-s3-2019.8.11.tar.gz", "has_sig": false, "md5_digest": "4db32f70af74748fbaa05d6c7cf4a765", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3232, "upload_time": "2019-08-11T11:22:17", "url": "https://files.pythonhosted.org/packages/f2/e4/69700377e338d8e66f1f14959cfa511132f91ea94fc20c052533751fd00f/templates-s3-2019.8.11.tar.gz" } ], "2019.8.9": [ { "comment_text": "", "digests": { "md5": "bc240d21d7b9a18ad40fcb8dcefe0c08", "sha256": "124d376fa45e66dcdc7c4e3184aea6ea591e531d18a81151e43d3c722a9ab648" }, "downloads": -1, "filename": "templates-s3-2019.8.9.tar.gz", "has_sig": false, "md5_digest": "bc240d21d7b9a18ad40fcb8dcefe0c08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3225, "upload_time": "2019-08-10T18:15:06", "url": "https://files.pythonhosted.org/packages/f1/69/a5c482db665a58ed0b5a59b6ce833557755a1df168e61e33029594851abb/templates-s3-2019.8.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4db32f70af74748fbaa05d6c7cf4a765", "sha256": "79535a9b6560cd36575bc7a8c19b089300826fdb93b055e088e8734a734d17ea" }, "downloads": -1, "filename": "templates-s3-2019.8.11.tar.gz", "has_sig": false, "md5_digest": "4db32f70af74748fbaa05d6c7cf4a765", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3232, "upload_time": "2019-08-11T11:22:17", "url": "https://files.pythonhosted.org/packages/f2/e4/69700377e338d8e66f1f14959cfa511132f91ea94fc20c052533751fd00f/templates-s3-2019.8.11.tar.gz" } ] }