{"id":42016984,"url":"https://github.com/rssnyder/harness-autostopping","last_synced_at":"2026-01-26T03:16:18.776Z","repository":{"id":329155274,"uuid":"1118331666","full_name":"rssnyder/harness-autostopping","owner":"rssnyder","description":"generic module for all types of harness autostopping","archived":false,"fork":false,"pushed_at":"2025-12-18T15:11:45.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-21T05:21:13.594Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","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/rssnyder.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T15:42:08.000Z","updated_at":"2025-12-18T15:11:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rssnyder/harness-autostopping","commit_stats":null,"previous_names":["rssnyder/harness-autostopping"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rssnyder/harness-autostopping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fharness-autostopping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fharness-autostopping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fharness-autostopping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fharness-autostopping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rssnyder","download_url":"https://codeload.github.com/rssnyder/harness-autostopping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rssnyder%2Fharness-autostopping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28765577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T02:25:41.078Z","status":"ssl_error","status_checked_at":"2026-01-26T02:24:28.809Z","response_time":59,"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":[],"created_at":"2026-01-26T03:16:18.230Z","updated_at":"2026-01-26T03:16:18.768Z","avatar_url":"https://github.com/rssnyder.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# harness-autostopping\n\nthis module will create autostopping components for the target resource type, any combination of traffic, schedule, or none\n\nfor traffic based, you will pass your alb information\n\nfor schedule based, you will pass a list of objects that describe your schedule:\n```hcl\n[{\n    name = \"mySched\"\n    type = \"uptime\"\n    time_zone = \"America/Chicago\"\n    spec = {\n        days = [\"MON\", \"TUE\", \"WED\", \"THU\", \"FRI\"]\n        start_time = \"08:00\"\n        end_time = \"17:00\"\n    }\n}]\n```\n__the above is a monday through friday 8-5 schedule__\n\n## asg\n\nautostopping for aws autoscaling groups\n\n### required inputs\n\n- asg_name\n- idle_time_mins\n- harness_cloud_connector_id\n- region\n\n### optional inputs\n\n#### schedules\n\n- autostopping_schedules: list of uptime schedules repeat windows\n\n#### traffic\n\n- vpc_id: vpc id\n- alb_arn: id of the alb to import to harness\n- listener_arn: listener arn\n- tg_arn: target group arn\n\n## ec2\n\nautostopping for aws ec2 instances\n\n### required inputs\n\n- ec2_id\n- idle_time_mins\n- harness_cloud_connector_id\n- region\n\n### optional inputs\n\n#### schedules\n\n- autostopping_schedules: list of uptime schedules repeat windows\n\n#### traffic\n\n- vpc_id: vpc id\n- alb_arn: id of the alb to import to harness\n- listener_arn: listener arn\n- tg_arn: target group arn\n\n## ecs\n\nautostopping for aws ecs services\n\n### required inputs\n\n- ecs_service_name\n- ecs_cluster_name\n- idle_time_mins\n- harness_cloud_connector_id\n- region\n\n### optional inputs\n\n#### schedules\n\n- autostopping_schedules: list of uptime schedules repeat windows\n\n#### traffic\n\n- vpc_id: vpc id\n- alb_arn: id of the alb to import to harness\n\n# module spec\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| aws | \u003e= 6 |\n| harness | \u003e= 0.39.1 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| aws | 6.26.0 |\n| harness | 0.39.4 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [harness_autostopping_aws_alb.this](https://registry.terraform.io/providers/harness/harness/latest/docs/resources/autostopping_aws_alb) | resource |\n| [harness_autostopping_rule_ecs.this](https://registry.terraform.io/providers/harness/harness/latest/docs/resources/autostopping_rule_ecs) | resource |\n| [harness_autostopping_rule_scale_group.this](https://registry.terraform.io/providers/harness/harness/latest/docs/resources/autostopping_rule_scale_group) | resource |\n| [harness_autostopping_rule_vm.this](https://registry.terraform.io/providers/harness/harness/latest/docs/resources/autostopping_rule_vm) | resource |\n| [harness_autostopping_schedule.this](https://registry.terraform.io/providers/harness/harness/latest/docs/resources/autostopping_schedule) | resource |\n| [aws_autoscaling_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/autoscaling_group) | data source |\n| [aws_ecs_cluster.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecs_cluster) | data source |\n| [aws_ecs_service.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecs_service) | data source |\n| [aws_instance.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/instance) | data source |\n| [aws_lb.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/lb) | data source |\n| [aws_lb_listener.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/lb_listener) | data source |\n| [aws_lb_target_group.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/lb_target_group) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| alb\\_arn | id of the alb to import to harness; set to enable alb autostopping | `string` | `null` | no |\n| asg\\_name | asg id | `string` | `null` | no |\n| autostopping\\_schedules | Optional list of schedule repeat windows. If null, no Harness autostopping schedule will be created. | \u003cpre\u003elist(object({\u003cbr/\u003e    name      = string\u003cbr/\u003e    type      = string\u003cbr/\u003e    time_zone = string\u003cbr/\u003e    spec = object({\u003cbr/\u003e      days       = list(string)\u003cbr/\u003e      start_time = string\u003cbr/\u003e      end_time   = string\u003cbr/\u003e    })\u003cbr/\u003e  }))\u003c/pre\u003e | `null` | no |\n| ec2\\_id | ec2 id | `string` | `null` | no |\n| ecs\\_cluster\\_name | ecs cluster name; required if ecs\\_service\\_name set | `string` | `null` | no |\n| ecs\\_service\\_name | ecs service name | `string` | `null` | no |\n| harness\\_cloud\\_connector\\_id | harness cloud connector id | `string` | n/a | yes |\n| idle\\_time\\_mins | idle time | `number` | n/a | yes |\n| listener\\_arn | listener arn; required if alb\\_arn set, unless using ecs | `string` | `null` | no |\n| name | name for this alb/rule | `string` | n/a | yes |\n| region | cloud region | `string` | n/a | yes |\n| tg\\_arn | target group arn; required if alb\\_arn set, unless using ecs | `string` | `null` | no |\n| vpc\\_id | vpc id; required if alb\\_arn set | `string` | `null` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| autostopping\\_rule\\_id | n/a |\n| autostopping\\_schedule\\_ids | n/a |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frssnyder%2Fharness-autostopping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frssnyder%2Fharness-autostopping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frssnyder%2Fharness-autostopping/lists"}