{"id":19374133,"url":"https://github.com/ucdavis/aws_ec2_instances_status_checks_ps","last_synced_at":"2025-08-20T03:36:44.526Z","repository":{"id":117041145,"uuid":"493313675","full_name":"ucdavis/AWS_EC2_Instances_Status_Checks_PS","owner":"ucdavis","description":"PowerShell script to check the statuses of EC2 instances","archived":false,"fork":false,"pushed_at":"2022-05-17T15:42:19.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-18T12:01:41.120Z","etag":null,"topics":["aws-ec2","powershell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/ucdavis.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-05-17T15:39:14.000Z","updated_at":"2022-05-17T15:42:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4723766-d197-49fc-a0ab-dd40de739d5c","html_url":"https://github.com/ucdavis/AWS_EC2_Instances_Status_Checks_PS","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/ucdavis%2FAWS_EC2_Instances_Status_Checks_PS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucdavis%2FAWS_EC2_Instances_Status_Checks_PS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucdavis%2FAWS_EC2_Instances_Status_Checks_PS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ucdavis%2FAWS_EC2_Instances_Status_Checks_PS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ucdavis","download_url":"https://codeload.github.com/ucdavis/AWS_EC2_Instances_Status_Checks_PS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240501331,"owners_count":19811590,"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":["aws-ec2","powershell"],"created_at":"2024-11-10T08:34:12.297Z","updated_at":"2025-02-24T15:22:28.534Z","avatar_url":"https://github.com/ucdavis.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## AWS EC2 Instances Status Checks \n\nA quick PowerShell script to check the status of AWS EC2 instances. \n\n### Scenario\n\nYou have an EC2 instances that need to start once a day and perform some data processing tasks and then shutdown.\n\nDesigned to be run periodically through out the day, this script will check the current hour and start the system if it's powered off. If running it will make sure it doesn't run longer than 12 hours. \n\n### Required Setup\n\nThe AWS Tools for PowerShell on Windows module must be installed on the system.\n```powershell\n# Make sure the AWS PowerShell module is located in one of the module paths\n# View Module Paths\n$Env:PSModulePath\n```\n\nCheck Version of AWS PowerShell Module\n```powershell\n# Check AWS PowerShell Version\nGet-AWSPowerShellVersion\n```\n\nConfigure the AWS credentials\n```powershell\n# Setup the default profie credentials to be used during calls. Only run if not already configured \nSet-AWSCredential -AccessKey NnNnNnNn -SecretKey NnNnNnNn -StoreAs default\n```\n\nCheck AWS credentials\n```powershell\n# Check credentials\nGet-AWSCredential -ListProfileDetail\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucdavis%2Faws_ec2_instances_status_checks_ps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fucdavis%2Faws_ec2_instances_status_checks_ps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fucdavis%2Faws_ec2_instances_status_checks_ps/lists"}