{"id":17286675,"url":"https://github.com/louis70109/aws-sentry-flask-example","last_synced_at":"2025-03-26T17:19:16.132Z","repository":{"id":40768299,"uuid":"221100665","full_name":"louis70109/aws-sentry-flask-example","owner":"louis70109","description":"It combine Sentry on Flask, which is deploy in AWS by serverless framework","archived":false,"fork":false,"pushed_at":"2023-05-01T20:37:23.000Z","size":68,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T22:11:26.471Z","etag":null,"topics":["aws","aws-sentry-flask","echo-bot","sentry","serverless"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/louis70109.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-12T01:09:48.000Z","updated_at":"2022-06-24T08:25:19.000Z","dependencies_parsed_at":"2024-12-04T20:42:39.187Z","dependency_job_id":"ea6ed0cd-7c96-4aef-a392-217d392cc57a","html_url":"https://github.com/louis70109/aws-sentry-flask-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2Faws-sentry-flask-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2Faws-sentry-flask-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2Faws-sentry-flask-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis70109%2Faws-sentry-flask-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louis70109","download_url":"https://codeload.github.com/louis70109/aws-sentry-flask-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245699263,"owners_count":20657987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-sentry-flask","echo-bot","sentry","serverless"],"created_at":"2024-10-15T09:59:54.118Z","updated_at":"2025-03-26T17:19:16.109Z","avatar_url":"https://github.com/louis70109.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-sentry-flask-example\n\nWelcome here!\n\nThis is base on [aws-line-echo-bot](https://github.com/louis70109/aws-line-echo-bot)'s version,\nusing serverless to build a line echo bot and import sentry to catch error by flask in AWS.\n\nTopic link: [url](https://nijialin.com/2019/11/12/sentry-in-serverless)\n\n# Bebore you start\n\n1. Line developer account\n2. [Line Message API](https://developers.line.biz/en/docs/messaging-api/getting-started/)\n3. Sentry account\n\n# Quick Start\n\n1. Install serverless via npm\n\n```bash\n$ npm install -g serverless\n```\n\n2. Setup your **AWS** ceritficate\n\n```bash\nexport AWS_ACCESS_KEY_ID=\u003cyour-key-here\u003e\nexport AWS_SECRET_ACCESS_KEY=\u003cyour-secret-key-here\u003e\n```\n\n3. Clone this project\n\n```bash\n$ serverless install --url https://github.com/louis70109/aws-line-wsgi-python -n \u003cYOUR_FILE_NAME\u003e\n$ cd \u003cYOUR_FILE_NAME\u003e/\n```\n\n4. Rename `.env.sample` to `.env` and insert key in file.\n\n```sh\nSENTRY_DSN=\nLINE_CHANNEL_TOKEN=\nLINE_CHANNEL_SECRET_KEY=\n```\n\n5. Deploy the webhhok function\n\n```bash=\nnpm install\npip install -r requirements.txt\nserverless deploy\n```\n\n6. You may have like this domain\n\n![](https://i.imgur.com/XCiTkb7.png)\n\n7.  Copy and Paste domain in your LINE bot account\n\n![](https://i.imgur.com/nXFcseH.png)\n\n8. Now you can test you chatbot, have fun!\n![Echo bot](https://i.imgur.com/Tn1XS13.png)\n\n9. If have logging `waring`, `error`, Internal(500) or Traceback it will send you Sentry account.\n\n![](https://i.imgur.com/JvVeSdd.png)\n\n\n# Author\n\nCreate by NiJia\n\n# License\n\nThe project is available as open source under the terms of the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis70109%2Faws-sentry-flask-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouis70109%2Faws-sentry-flask-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis70109%2Faws-sentry-flask-example/lists"}