{"id":19208620,"url":"https://github.com/heiwa4126/sam-stepfunctions-activity1","last_synced_at":"2025-08-01T19:04:19.060Z","repository":{"id":111911426,"uuid":"476638521","full_name":"heiwa4126/sam-stepfunctions-activity1","owner":"heiwa4126","description":"AWS Step Functionsのactivityのテスト","archived":false,"fork":false,"pushed_at":"2022-04-01T08:50:03.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T07:16:29.378Z","etag":null,"topics":["activity","aws-sam","examples","stepfunctions"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heiwa4126.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-04-01T08:32:47.000Z","updated_at":"2022-04-01T08:33:38.000Z","dependencies_parsed_at":"2023-04-18T14:30:47.044Z","dependency_job_id":null,"html_url":"https://github.com/heiwa4126/sam-stepfunctions-activity1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heiwa4126/sam-stepfunctions-activity1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-stepfunctions-activity1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-stepfunctions-activity1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-stepfunctions-activity1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-stepfunctions-activity1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heiwa4126","download_url":"https://codeload.github.com/heiwa4126/sam-stepfunctions-activity1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-stepfunctions-activity1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268281457,"owners_count":24225155,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["activity","aws-sam","examples","stepfunctions"],"created_at":"2024-11-09T13:27:12.021Z","updated_at":"2025-08-01T19:04:19.012Z","avatar_url":"https://github.com/heiwa4126.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sam-stepfunctions-activity1\n\nAWS Step Functionsのactivityのテスト\n\n## 参考\n\n- [Step Function Activity with Python | by Yuvaraj Ravikumar | Medium](https://medium.com/@yuvarajmailme/step-function-activity-with-python-c007178037af)\n\n\n# 概要\n\n前段から\n```JSON\n{\"surname\":\"Smithee\", \"givenname\":\"Alan\"}\n```\n\nみたいのを受けて\n\n```JSON\n{\"fullname\":\"Alan Smithee\"}\n```\n\nのようなのを返すworkerをPythonで作ってみた。\n\n\n# ステートマシンのデプロイ\n\nSAMなので\n\n```sh\nsam build\nsam deploy --guided # --guidedは2回め以降は不要\n```\n\n# 準備\n\nデプロイ成功後、準備として\n```sh\npip3 install -U -r requirements.txt\n./export1.py\n```\nを1回実行。\n\n\n# 実行\n\n```sh\n./start_statemachine.sh\n./get_statemachine_status.sh\n./worker1.py\n./get_statemachine_status.sh\n```\n\nworkerを先に実行するとどうなるかも試して。\n```sh\n./worker1.py \u0026\n./start_statemachine.sh\n./get_statemachine_status.sh\n```\n\nこういうのも試して。\n```sh\n./start_statemachine.sh \u0026\n./start_statemachine.sh \u0026\n./start_statemachine.sh\n./worker1.py \u0026\n./worker1.py \u0026\n./worker1.py\n```\n\n\n# 削除\n\n```sh\nsam delete --no-prompts\n```\n\n\n# メモ\n\n## 「実行」を消す方法\n\nステートマシンのコンソール見てると、「実行」がどんどん溜まっていくのが見える。\n「実行」を消す方法はないらしい。\n\n[aws step functions - How to Delete State Machine Executions? - Stack Overflow](https://stackoverflow.com/questions/59168923/how-to-delete-state-machine-executions)\n\nAPIにDeleteExecutionがない。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Fsam-stepfunctions-activity1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheiwa4126%2Fsam-stepfunctions-activity1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Fsam-stepfunctions-activity1/lists"}