{"id":18600330,"url":"https://github.com/shintaro-abe/codefamily-serverless","last_synced_at":"2026-04-28T18:04:18.823Z","repository":{"id":162074070,"uuid":"636488010","full_name":"Shintaro-Abe/codefamily-serverless","owner":"Shintaro-Abe","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-12T06:41:23.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-26T22:27:37.452Z","etag":null,"topics":["api-gateway","aws","codebuild","codecommit","codepipeline","lambda","serverless-framework","sns"],"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/Shintaro-Abe.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":"2023-05-05T00:52:53.000Z","updated_at":"2023-06-01T15:22:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"bad5f281-7d44-472f-bc63-ec45eec6ecc9","html_url":"https://github.com/Shintaro-Abe/codefamily-serverless","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"abad55d04bf65b00c0a60933fcca2e8cf525c762"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shintaro-Abe%2Fcodefamily-serverless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shintaro-Abe%2Fcodefamily-serverless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shintaro-Abe%2Fcodefamily-serverless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shintaro-Abe%2Fcodefamily-serverless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shintaro-Abe","download_url":"https://codeload.github.com/Shintaro-Abe/codefamily-serverless/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239389577,"owners_count":19630310,"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":["api-gateway","aws","codebuild","codecommit","codepipeline","lambda","serverless-framework","sns"],"created_at":"2024-11-07T02:03:41.337Z","updated_at":"2025-11-02T08:30:28.186Z","avatar_url":"https://github.com/Shintaro-Abe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codefamily-serverless\n## Refferemce article\nZennに投稿した、「CodePipelineとServerless Frameworkでビルド【CodeFamily Practices 6/7】」に掲載したコードを収録したリポジトリ。\n\n\u003ca href=\"https://zenn.dev/lifewithpiano/articles/codefamily_serverless\"\u003e\u003cimg src=\"images/codefamily_serverless_zenn.png\" width=\"50%\"\u003e\n\n## Summary\nAPI GatewayとLambdaの挙動を確認するための、シンプルな構成。\n\n* ソースステージをCodeCommit、ビルドステージをCodeBuildに設定したCodePipelineを構築。\n* ビルドはServerless Frameworkを使用。\n* API Gatewayへメールのタイトルと本文を指定してアクセスをすると、SNSトピックのサブスクリプションへメールを送信\n* 送信に成功すると、サブジェクトとメッセージの値をレスポンス。\n\n\u003cimg src=\"images/api-serverless.drawio.png\" width=\"50%\"\u003e\n\n* __コマンド__\n\n```\ncurl -X POST \\\n'https://Your-domain-name' \\\n-d $'{\"sub\": \"テスト\", \"mes\": \"動作異常なし。\"}'\n```\n* __メール__\n\n\u003cimg src=\"images/apicf16.png\" width=\"50%\"\u003e\n\n## Regarding plugin\n\nAPI Gatewayに付与するカスタムドメインの作成に、 __Domain Managerプラグイン__ を使用。\n* __Domain Managerパッケージをインストール__\n\n```\nnpm install serverless-domain-manager\n```\n* __インストールとドメイン作成__\n\n\nドメインの作成。\n\n```\nserverless create_domain\n```\nServerless frameworkのデプロイ。\n\n```\nserverless deploy\n```\n* __リソースの削除__\n\nServerless frameworkの削除。\n\n```\nserverless remove\n```\nドメインの削除。\n\n```\nserverless delete_domain\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshintaro-abe%2Fcodefamily-serverless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshintaro-abe%2Fcodefamily-serverless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshintaro-abe%2Fcodefamily-serverless/lists"}