{"id":24317239,"url":"https://github.com/ot-nemoto/ec2-instances-switcher","last_synced_at":"2025-07-15T19:11:34.058Z","repository":{"id":102348343,"uuid":"162208337","full_name":"ot-nemoto/ec2-instances-switcher","owner":"ot-nemoto","description":":frog: 特定のタグが付与されたEC2インスタンスを起動","archived":false,"fork":false,"pushed_at":"2022-12-06T15:40:13.000Z","size":20,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-10T16:43:39.219Z","etag":null,"topics":["serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ot-nemoto.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":"2018-12-18T00:41:35.000Z","updated_at":"2022-03-27T01:35:50.000Z","dependencies_parsed_at":"2023-03-13T15:21:07.954Z","dependency_job_id":null,"html_url":"https://github.com/ot-nemoto/ec2-instances-switcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ot-nemoto/ec2-instances-switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ot-nemoto%2Fec2-instances-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ot-nemoto%2Fec2-instances-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ot-nemoto%2Fec2-instances-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ot-nemoto%2Fec2-instances-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ot-nemoto","download_url":"https://codeload.github.com/ot-nemoto/ec2-instances-switcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ot-nemoto%2Fec2-instances-switcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265453285,"owners_count":23768104,"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":["serverless"],"created_at":"2025-01-17T13:33:08.621Z","updated_at":"2025-07-15T19:11:33.995Z","avatar_url":"https://github.com/ot-nemoto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ec2-instances-switcher\n\n### 概要\n\n- 指定された時間に、特定のタグが付与されたEC2インスタンスを起動する。\n- 起動する時間は平日（月～金）の午前８時。\n- デフォルトのリージョンは東京（ap-northeast-1）。\n\n### 使い方\n\n- 起動・停止対象のEC2インスタンスに `ec2-instances-switcher-isenabled` タグを付与。\n- タグの値には `ON`, `TRUE`, `1` の何れかを設定。\n- 起動・停止対象から外したい場合はタグを削除。またはタグの値に上記以外を設定。\n\n### デプロイ\n\n*serverless*\n\n```sh\n# stack-nameは環境に合わせて\nuri=$(aws cloudformation describe-stacks \\\n          --stack-name public-holiday-api-dev \\\n          --query 'Stacks[].Outputs[?OutputKey==`ServiceEndpoint`].OutputValue' \\\n          --output text)\n\n(cd layer/nodejs; npm install)\nsls deploy --public-holiday-api ${uri}\n```\n\nデプロイパラメータ\n\n|パラメータ|概要|必須(初期値)|\n|--|--|--|\n|--public-holiday-api|[public-holiday-api](https://github.com/ot-nemoto/public-holiday-api) でdeployした祝日APIのURL|_true_|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fot-nemoto%2Fec2-instances-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fot-nemoto%2Fec2-instances-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fot-nemoto%2Fec2-instances-switcher/lists"}