{"id":18291198,"url":"https://github.com/rhecosystemappeng/cloud-infrastructure-power-manager","last_synced_at":"2025-08-05T06:21:49.781Z","repository":{"id":104491245,"uuid":"523645239","full_name":"RHEcosystemAppEng/cloud-infrastructure-power-manager","owner":"RHEcosystemAppEng","description":"The Cloud Infrastructure Power Manager creates automatic mechanisms depending on the cloud provider to power off/on the infrastructure during periods of less activity and certificate renewal dates","archived":false,"fork":false,"pushed_at":"2022-08-24T12:22:25.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T02:15:24.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RHEcosystemAppEng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"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":"2022-08-11T08:33:10.000Z","updated_at":"2022-08-19T07:41:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"8dc12498-0d80-4511-b306-04cee5739d27","html_url":"https://github.com/RHEcosystemAppEng/cloud-infrastructure-power-manager","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/RHEcosystemAppEng%2Fcloud-infrastructure-power-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Fcloud-infrastructure-power-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Fcloud-infrastructure-power-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RHEcosystemAppEng%2Fcloud-infrastructure-power-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RHEcosystemAppEng","download_url":"https://codeload.github.com/RHEcosystemAppEng/cloud-infrastructure-power-manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999840,"owners_count":21031044,"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":[],"created_at":"2024-11-05T14:13:29.974Z","updated_at":"2025-04-09T07:49:41.384Z","avatar_url":"https://github.com/RHEcosystemAppEng.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud Infrastructure Power Manager\nThe Cloud Infrastructure Power Manager creates automatic mechanisms depending on\nthe cloud provider to power off/on the infrastructure during periods of less\nactivity and certificate renewal dates\n\n## Run\n```sh\n# Run the script and follow the selector menus\n./power_manager.sh\n```\n\n## Get Expiration Timestamp\nConfigure your `oc` or `kubectl` CLI and run the following command:\n```sh\noc -n openshift-kube-apiserver-operator get secret kube-apiserver-to-kubelet-signer -o jsonpath='{.metadata.annotations.auth\\.openshift\\.io/certificate-not-after}'\n```\n\n\n## Cloud providers Support\n### AWS\nUsing a combination of AWS Lambda and AWS EventBridge creates functions and cron\nrules to power on/off the specified cluster.\n\n**Warning!** This requires to have installed the AWS CLI with properly\nconfigured to access the subscription.\n#### Rule Options\n* **Weekends:** Power on/off during weekends (from FRI 23:00 UTC to MON 07:00 UTC) and Cert Renewal date\n* **Nights:** Power on/off during nights (from MON-FRI 23:00 UTC to MON-FRI 07:00 UTC) and Cert Renewal date\n* **Weekends-Nights:** Two previous rules simultaneously\n* **None:** Only Cert Renewal date\n* **Clean:** Removes every rule\n\n### GCP\n**NOT SUPPORTED**\n### AZURE\n**NOT SUPPORTED**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhecosystemappeng%2Fcloud-infrastructure-power-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhecosystemappeng%2Fcloud-infrastructure-power-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhecosystemappeng%2Fcloud-infrastructure-power-manager/lists"}