{"id":44746459,"url":"https://github.com/wiiisdom/ec2-leaser","last_synced_at":"2026-02-15T22:12:14.719Z","repository":{"id":169798912,"uuid":"158561192","full_name":"wiiisdom/ec2-leaser","owner":"wiiisdom","description":"Start EC2 from selected AMI and with the correct tags","archived":false,"fork":false,"pushed_at":"2026-02-09T21:59:38.000Z","size":9901,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-02-10T00:56:00.012Z","etag":null,"topics":["aws","ec2","react","sst"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/wiiisdom.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-11-21T14:33:50.000Z","updated_at":"2026-02-09T21:59:42.000Z","dependencies_parsed_at":"2024-04-15T03:27:39.603Z","dependency_job_id":"5991ef3e-a5c4-4955-9fcb-0b9d86e8bc9c","html_url":"https://github.com/wiiisdom/ec2-leaser","commit_stats":null,"previous_names":["wiiisdom/ec2-leaser"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wiiisdom/ec2-leaser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiiisdom%2Fec2-leaser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiiisdom%2Fec2-leaser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiiisdom%2Fec2-leaser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiiisdom%2Fec2-leaser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiiisdom","download_url":"https://codeload.github.com/wiiisdom/ec2-leaser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiiisdom%2Fec2-leaser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29490399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aws","ec2","react","sst"],"created_at":"2026-02-15T22:12:14.158Z","updated_at":"2026-02-15T22:12:14.714Z","avatar_url":"https://github.com/wiiisdom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ec2-leaser\n\nA tiny tool to allow google user to start EC2 instances from a list of Launch Template already created. It can be used to not provide `startInstance` IAM right yo your users.\n\n![EC2 Leaser](ec2-leaser.gif)\n\nIt's also possible to snapshot and restore instances!\n\n## Architecture\n\nIt's a fullstack application (NextJs) deployed via [SST](https://sst.dev/) on AWS.\n\n## How to run the application locally ?\n\nRun the multiplexer if you want to work with the cron job\n\n```\npnpm install\npnpm sst dev\n```\n\nRun to work with the app\n\n```\npnpm install\npnpm dev\n```\n\n## How to deploy the application\n\nDeploy the infrastructure with SST (front and back stack)\n(it push the frontend to S3 and invalidate cloudfront distribution)\n\n```\nAWS_REGION=eu-central-1 pnpm sst deploy --stage prod # on aws prod account\nAWS_REGION=us-east-1 pnpm sst deploy --stage demo # on aws demo account\n\n```\n\n### Cost center data content\n\nTo add cost center list so that the frontend can make use of it, add items directly from the AWS GUI:\nvisit [DynamoDB section](https://console.aws.amazon.com/dynamodbv2/home)\nsearch for `{stage}-ec2-leaser-config`\n\nSee below for an example on how to enter the items in the table:\n\n| PK          | SK                   | description                                           |\n| ----------- | -------------------- | ----------------------------------------------------- |\n| costcenters | eng:360Eyes          | Usage for Engineering 360Eyes                         |\n| costcenters | eng:360WP            | Usage for Engineering 360WebPlatform                  |\n| costcenters | eng:lab              | Generic Lab usage                                     |\n| schedules   | lille-office-stop    | Stop automatically the instance at 7pm (CET timezone) |\n| schedules   | montreal-office-stop | Stop automatically the instance at 7pm (EST timezone) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiiisdom%2Fec2-leaser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiiisdom%2Fec2-leaser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiiisdom%2Fec2-leaser/lists"}