{"id":44114437,"url":"https://github.com/develeap/terraform-provider-hyperping","last_synced_at":"2026-04-01T18:57:48.059Z","repository":{"id":336008015,"uuid":"1147838019","full_name":"develeap/terraform-provider-hyperping","owner":"develeap","description":"Terraform provider for Hyperping uptime monitoring","archived":false,"fork":false,"pushed_at":"2026-02-25T04:52:21.000Z","size":28561,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-25T10:25:50.530Z","etag":null,"topics":["devops","hyperping","infrastructure-as-code","monitoring","observability","status-page","terraform","terraform-provider","uptime"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/develeap/hyperping","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/develeap.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-02T09:12:25.000Z","updated_at":"2026-02-25T04:52:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/develeap/terraform-provider-hyperping","commit_stats":null,"previous_names":["develeap/terraform-provider-hyperping"],"tags_count":20,"template":false,"template_full_name":"hashicorp/terraform-provider-scaffolding-framework","purl":"pkg:github/develeap/terraform-provider-hyperping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/develeap%2Fterraform-provider-hyperping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/develeap%2Fterraform-provider-hyperping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/develeap%2Fterraform-provider-hyperping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/develeap%2Fterraform-provider-hyperping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/develeap","download_url":"https://codeload.github.com/develeap/terraform-provider-hyperping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/develeap%2Fterraform-provider-hyperping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29929878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["devops","hyperping","infrastructure-as-code","monitoring","observability","status-page","terraform","terraform-provider","uptime"],"created_at":"2026-02-08T17:00:50.342Z","updated_at":"2026-04-01T18:57:48.051Z","avatar_url":"https://github.com/develeap.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider for Hyperping\n\n[![Tests](https://github.com/develeap/terraform-provider-hyperping/actions/workflows/test.yml/badge.svg)](https://github.com/develeap/terraform-provider-hyperping/actions/workflows/test.yml)\n[![GitHub Release](https://img.shields.io/github/v/release/develeap/terraform-provider-hyperping)](https://github.com/develeap/terraform-provider-hyperping/releases)\n[![Terraform Registry](https://img.shields.io/badge/terraform-registry-623CE4?logo=terraform)](https://registry.terraform.io/providers/develeap/hyperping)\n[![License: MPL-2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](https://opensource.org/licenses/MPL-2.0)\n[![Go Report Card](https://goreportcard.com/badge/github.com/develeap/terraform-provider-hyperping)](https://goreportcard.com/report/github.com/develeap/terraform-provider-hyperping)\n\nCommunity Terraform provider for [Hyperping](https://hyperping.io/) - manage uptime monitoring, incidents, status pages, and maintenance windows as infrastructure-as-code.\n\n## Features\n\n**Resources:**\n- `hyperping_monitor` - HTTP/HTTPS uptime monitors with multi-region checks\n- `hyperping_incident` - Incident management with status updates\n- `hyperping_maintenance` - Scheduled maintenance windows\n- `hyperping_statuspage` - Public status pages with customization\n- `hyperping_statuspage_subscriber` - Status page notifications (email, SMS, Teams)\n- `hyperping_healthcheck` - Cron job monitoring\n- `hyperping_outage` - Outage tracking and management\n\n**Data Sources:**\n- `hyperping_monitors` - List/filter all monitors\n- `hyperping_statuspages` - List/search status pages with pagination\n- `hyperping_statuspage` - Single status page details\n- `hyperping_statuspage_subscribers` - List subscribers by type\n- `hyperping_monitor_report` - Uptime/SLA reports\n\n## Quick Start\n\n```hcl\nterraform {\n  required_providers {\n    hyperping = {\n      source  = \"develeap/hyperping\"\n      version = \"~\u003e 1.0\"\n    }\n  }\n}\n\nprovider \"hyperping\" {\n  # Set HYPERPING_API_KEY environment variable\n  # Or: api_key = \"sk_...\"\n}\n\n# Create a monitor\nresource \"hyperping_monitor\" \"api\" {\n  name                 = \"API Health Check\"\n  url                  = \"https://api.example.com/health\"\n  protocol             = \"http\"\n  check_frequency      = 60\n  expected_status_code = \"200\"\n  regions              = [\"london\", \"virginia\", \"singapore\"]\n}\n\n# Create a status page\nresource \"hyperping_statuspage\" \"public\" {\n  name      = \"Service Status\"\n  subdomain = \"status\"  # status.hyperping.app\n  theme     = \"dark\"\n\n  sections = [{\n    name     = { en = \"API Services\" }\n    is_split = true\n    services = [{\n      monitor_uuid        = hyperping_monitor.api.id\n      show_uptime         = true\n      show_response_times = true\n    }]\n  }]\n}\n\n# Add email subscribers\nresource \"hyperping_statuspage_subscriber\" \"team\" {\n  statuspage_uuid = hyperping_statuspage.public.id\n  type            = \"email\"\n  email           = \"team@example.com\"\n}\n\n# Schedule maintenance\nresource \"hyperping_maintenance\" \"upgrade\" {\n  name       = \"Database Upgrade\"\n  start_date = \"2026-02-15T02:00:00Z\"\n  end_date   = \"2026-02-15T04:00:00Z\"\n  monitors   = [hyperping_monitor.api.id]\n}\n```\n\n## Authentication\n\nGet your API key from the [Hyperping dashboard](https://app.hyperping.io/).\n\n```bash\nexport HYPERPING_API_KEY=\"sk_your_api_key\"\nterraform plan\n```\n\nOr configure in the provider block (not recommended for production).\n\n## Migration Tools\n\nAutomated CLI tools for migrating from other monitoring platforms:\n\n```bash\n# Migrate from Better Stack\ngo install github.com/develeap/terraform-provider-hyperping/cmd/migrate-betterstack@latest\nmigrate-betterstack --betterstack-token $BETTERSTACK_TOKEN --hyperping-api-key $HYPERPING_KEY\n\n# Migrate from UptimeRobot\ngo install github.com/develeap/terraform-provider-hyperping/cmd/migrate-uptimerobot@latest\nmigrate-uptimerobot --uptimerobot-api-key $UPTIMEROBOT_KEY --hyperping-api-key $HYPERPING_KEY\n\n# Migrate from Pingdom\ngo install github.com/develeap/terraform-provider-hyperping/cmd/migrate-pingdom@latest\nmigrate-pingdom --pingdom-api-key $PINGDOM_KEY --hyperping-api-key $HYPERPING_KEY\n```\n\n**Features:**\n- ✅ Automated export from source platform\n- ✅ Intelligent resource conversion\n- ✅ Production-ready Terraform generation\n- ✅ Validation and compatibility checks\n- ✅ Shared utilities (`pkg/migrate/`) for frequency mapping, region translation, name sanitization\n- ✅ 85-90% time savings vs. manual migration\n\n**Guides:**\n- [Automated Migration Tools](./docs/guides/automated-migration.md) - Complete CLI tool documentation\n- [Better Stack Migration](./docs/guides/migrate-from-betterstack.md) - Better Stack-specific guide\n- [UptimeRobot Migration](./docs/guides/migrate-from-uptimerobot.md) - UptimeRobot-specific guide\n- [Pingdom Migration](./docs/guides/migrate-from-pingdom.md) - Pingdom-specific guide\n\n## Documentation\n\n- **[Wiki](https://github.com/develeap/terraform-provider-hyperping/wiki)** - Complete guide with all resources, examples, migration tools, and architecture docs\n- **[Terraform Registry](https://registry.terraform.io/providers/develeap/hyperping/latest/docs)** - Complete resource/data source reference\n- **[Examples](./examples/)** - Real-world usage examples\n- **[Changelog](./CHANGELOG.md)** - Version history and release notes\n- **[Hyperping API Docs](https://hyperping.com/docs/api/overview)** - Official API documentation\n\n## Requirements\n\n- Terraform \u003e= 1.0\n- Go \u003e= 1.26.1 (development only)\n- Hyperping account with API key\n\n## Development\n\n```bash\n# Clone and build\ngit clone https://github.com/develeap/terraform-provider-hyperping.git\ncd terraform-provider-hyperping\ngo build -v\n\n# Run all tests\ngo test -v ./...\n\n# Run acceptance tests (requires API key)\nHYPERPING_API_KEY=sk_xxx TF_ACC=1 go test -v ./internal/provider/\n\n# Lint and security scan\ngolangci-lint run\ngosec ./...\n```\n\n### Testing\n\nThe provider uses **VCR (Video Cassette Recorder)** for hermetic, fast, and deterministic testing.\n\n#### Contract Tests (No API Key Required)\n\nContract tests validate API response structure using pre-recorded cassettes:\n\n```bash\n# Run all contract tests (no API key needed)\nexport VCR_MODE=replay\ngo test -v -run \"^TestContract\" ./internal/client/\n\n# Run specific resource tests\ngo test -v -run \"TestContract_Monitor\" ./internal/client/\ngo test -v -run \"TestContract_StatusPage\" ./internal/client/\n\n# Check for flakiness\nfor i in {1..10}; do go test -count=1 -run \"^TestContract\" ./internal/client/ || exit 1; done\n```\n\n**Benefits:**\n- No API key required\n- Fast execution (~7 seconds for 356 tests)\n- Deterministic results (same every time)\n- Safe for CI/CD (no rate limiting)\n- Detects API breaking changes\n\n#### Recording New Cassettes\n\nWhen the API changes or new tests are added:\n\n```bash\n# Set API key\nexport HYPERPING_API_KEY=sk_your_key_here\n\n# Record mode\nexport VCR_MODE=record\ngo test -v -run TestLiveContract_Monitor_CRUD ./internal/client/\n\n# Verify cassette created\nls -lh internal/client/testdata/cassettes/monitor_crud.yaml\n\n# Test in replay mode\nunset HYPERPING_API_KEY\nexport VCR_MODE=replay\ngo test -v -run TestContract_Monitor ./internal/client/\n```\n\n**Security:** All cassettes automatically mask API keys and sensitive headers.\n\n#### Test Coverage\n\n- **356 contract tests** validating API responses\n- **41 VCR cassettes** covering all resources\n- **100% passing** core tests (79/79)\n- **Zero flaky tests** across multiple runs\n- **Race detector clean**\n\nSee [internal/client/testdata/cassettes/README.md](internal/client/testdata/cassettes/README.md) for cassette documentation.\n\n#### Integration Tests for Migration Tools\n\nIntegration tests validate end-to-end workflows for all 3 migration tools with real APIs:\n\n```bash\n# Setup credentials\nexport BETTERSTACK_API_TOKEN=your_token\nexport UPTIMEROBOT_API_KEY=your_key\nexport PINGDOM_API_KEY=your_key\nexport HYPERPING_API_KEY=sk_your_key\n\n# Run all integration tests\ngo test -v -tags=integration -timeout=30m ./cmd/migrate-betterstack/...\ngo test -v -tags=integration -timeout=30m ./cmd/migrate-uptimerobot/...\ngo test -v -tags=integration -timeout=30m ./cmd/migrate-pingdom/...\n\n# Run specific scenarios\ngo test -v -tags=integration -run=\".*SmallScenario\" ./cmd/migrate-betterstack/...\n```\n\n**Each test validates:**\n1. API connection to source platform\n2. Migration tool execution without errors\n3. All 4 output files generated (.tf, import.sh, report.json, manual-steps.md)\n4. Terraform validation passes (terraform validate)\n5. Terraform plan shows expected resources (0 errors)\n6. Import script is executable with valid syntax\n7. Report and manual steps files are valid JSON/Markdown\n8. Resource count matches expected scenario\n\nSee [docs/INTEGRATION_TESTING.md](docs/INTEGRATION_TESTING.md) for complete documentation.\n\n## Production Features\n\n- **Security:** TLS 1.2+, credential sanitization, HTTPS enforcement\n- **Reliability:** Circuit breaker, exponential backoff, rate limit handling\n- **Testing:** 50.8% code coverage, race condition testing\n\nEnable debug logging:\n```bash\nexport TF_LOG=DEBUG\nterraform apply\n```\n\n## Contributing\n\nContributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n1. Fork the repository\n2. Create a feature branch\n3. Write tests (maintain coverage standards)\n4. Submit a pull request\n\n## Support\n\n- [Issue Tracker](https://github.com/develeap/terraform-provider-hyperping/issues)\n\n## Related Projects\n\n- **[hyperping-exporter](https://github.com/develeap/hyperping-exporter)** — Prometheus exporter for Hyperping monitoring metrics. Standalone Go service with Grafana dashboards, alerting rules, and Kubernetes manifests.\n\n## License\n\nMozilla Public License 2.0 - see [LICENSE](LICENSE) for details.\n\n---\n\nMaintained by [Develeap](https://develeap.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveleap%2Fterraform-provider-hyperping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveleap%2Fterraform-provider-hyperping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveleap%2Fterraform-provider-hyperping/lists"}