{"id":22770359,"url":"https://github.com/leanercloud/ec2-repair-crowdstrike","last_synced_at":"2025-04-15T03:46:56.280Z","repository":{"id":249270747,"uuid":"831058143","full_name":"LeanerCloud/ec2-repair-crowdstrike","owner":"LeanerCloud","description":"Terraform code creating an ASG that fixes the Crowdstrike BSOD for all your instances. This hasn't been tested, and looking for testers.","archived":false,"fork":false,"pushed_at":"2024-07-19T20:56:25.000Z","size":8,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T03:46:50.701Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://leanercloud.com","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeanerCloud.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":"2024-07-19T15:02:34.000Z","updated_at":"2025-03-29T16:10:59.000Z","dependencies_parsed_at":"2024-07-19T19:43:00.565Z","dependency_job_id":"383d21c7-394a-4bf9-88c8-961b998bc409","html_url":"https://github.com/LeanerCloud/ec2-repair-crowdstrike","commit_stats":null,"previous_names":["leanercloud/ec2-repair-crowdstrike"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeanerCloud%2Fec2-repair-crowdstrike","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeanerCloud%2Fec2-repair-crowdstrike/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeanerCloud%2Fec2-repair-crowdstrike/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeanerCloud%2Fec2-repair-crowdstrike/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeanerCloud","download_url":"https://codeload.github.com/LeanerCloud/ec2-repair-crowdstrike/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003941,"owners_count":21196794,"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-12-11T15:31:09.879Z","updated_at":"2025-04-15T03:46:56.255Z","avatar_url":"https://github.com/LeanerCloud.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EC2 Crowdstrike Repair (EXPERIMENTAL, NEEDS TESTERS)\n\nThis Terraform configuration sets up an Auto Scaling Group (ASG) that runs a PowerShell script to repair unhealthy EC2 instances across all Availability Zones in the current AWS region.\n\n## Features\n\n- Launches instances across all available Availability Zones in an ASG, with a single instance per AZ.\n- Each instance runs a custom PowerShell repair script, that iterates over all unhealthy instance form the current AZ:\n\n1. detaches the root volume from the current unhealthy instance.\n2. attaches it to the current instance.\n3. attempts to delete the broken CrowdStrike update file.\n4. detaches and re-attaches the volume to the initial instance.\n5. restarts the initial instance.\n\n## Prerequisites\n\n- Terraform installed (version 0.12 or later)\n\n## Usage\n\n1. Clone this repository\n\n2. Initialize the Terraform working directory:\n\n   ```shell\n   terraform init\n   ```\n\n3. Review the planned changes:\n\n   ```shell\n   terraform plan\n   ```\n\n4. Apply the Terraform configuration:\n\n   ```shell\n   terraform apply\n   ```\n\n5. Confirm the changes by typing `yes` when prompted.\n\n## Customization\n\n- To use a different Windows Server version, modify the `name` parameter in the `aws_ssm_parameter` data source.\n- Adjust the `instance_type` in the launch template if you need more powerful instances.\n- Modify the `min_size`, `max_size`, and `desired_capacity` in the ASG resource if you want a different scaling behavior.\n\n## Clean Up\n\nTo remove all created resources:\n\n```shell\nterraform destroy\n```\n\n## Contributing\n\nFeel free to submit issues or pull requests if you have suggestions for improvements or bug fixes.\n\n## License\n\nThis code is (C) 2024 Cristian Magherusan-Stanciu, and released under the MIT license.\n\nCheck out more of our OSS repos at [LeanerCloud.com](https://github.com/LeanerCloud).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanercloud%2Fec2-repair-crowdstrike","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleanercloud%2Fec2-repair-crowdstrike","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleanercloud%2Fec2-repair-crowdstrike/lists"}