{"id":15567757,"url":"https://github.com/circa10a/terraform-provider-mcbroken","last_synced_at":"2025-10-02T22:30:37.472Z","repository":{"id":46694246,"uuid":"310930717","full_name":"circa10a/terraform-provider-mcbroken","owner":"circa10a","description":"Base the count of your infrastucture resources on the current number of broken mcdonald's ice cream machines nationally or by a city of your choosing. Powered by https://mcbroken.com/","archived":false,"fork":false,"pushed_at":"2023-05-02T02:21:41.000Z","size":114,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-10T22:38:53.013Z","etag":null,"topics":["go","golang","mcdonalds","terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"","language":"Go","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/circa10a.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":"2020-11-07T20:57:39.000Z","updated_at":"2024-07-15T08:17:54.000Z","dependencies_parsed_at":"2024-06-20T01:24:46.423Z","dependency_job_id":"037d5ad2-98b0-4364-92c6-161bece0ff7f","html_url":"https://github.com/circa10a/terraform-provider-mcbroken","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fterraform-provider-mcbroken","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fterraform-provider-mcbroken/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fterraform-provider-mcbroken/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circa10a%2Fterraform-provider-mcbroken/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/circa10a","download_url":"https://codeload.github.com/circa10a/terraform-provider-mcbroken/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235047394,"owners_count":18927553,"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":["go","golang","mcdonalds","terraform","terraform-provider"],"created_at":"2024-10-02T17:12:53.339Z","updated_at":"2025-10-02T22:30:37.452Z","avatar_url":"https://github.com/circa10a.png","language":"Go","funding_links":["https://www.buymeacoffee.com/caleblemoine"],"categories":[],"sub_categories":[],"readme":"# terraform-provider-mcbroken \u003cimg src=\"https://i.imgur.com/fAS7XqO.png\" width=\"5%\" align=\"left\"/\u003e\n\n![Build Status](https://github.com/circa10a/terraform-provider-mcbroken/workflows/release/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/circa10a/terraform-provider-mcbroken)](https://goreportcard.com/report/github.com/circa10a/terraform-provider-mcbroken)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/circa10a/terraform-provider-mcbroken?style=plastic)\n[![Buy Me A Coffee](https://img.shields.io/badge/BuyMeACoffee-Donate-ff813f.svg?logo=CoffeeScript\u0026style=plastic)](https://www.buymeacoffee.com/caleblemoine)\n\nBase the count of your infrastructure resources on the current number of broken mcdonald's ice cream machines nationally or by a city of your choosing. Powered by [Mcbroken](https://mcbroken.com/).\n\n- [terraform-provider-mcbroken](#terraform-provider-mcbroken)\n  * [Usage](#usage)\n  * [Development](#development)\n    + [Linting](#linting)\n    + [Testing](#testing)\n    + [Mac](#mac)\n    + [Linux](#linux)\n    + [Windows](#windows)\n\n## Usage\n\n- View the provider on the [Hashicorp Registry](https://registry.terraform.io/providers/circa10a/mcbroken/latest/docs)\n\n```hcl\nterraform {\n  required_providers {\n    mcbroken = {\n      source  = \"circa10a/mcbroken\"\n    }\n  }\n}\n\nprovider \"mcbroken\" {}\n\n// Data source to get all available cities/national average of broken ice cream machines\ndata \"mcbroken_cities\" \"all\" {}\n\n// Data source to get current outage percentage of a specific city\ndata \"mcbroken_city\" \"Dallas\" {\n    city = \"Dallas\"\n}\n\n// If specified city isn't found, returns -1\ndata \"mcbroken_city\" \"not_found\" {\n    city = \"not_found\"\n}\n\n// Get national average of broken ice cream machines\noutput \"global_broken_average\" {\n    value = data.mcbroken_cities.all.broken\n}\n\n// Get list of all cities and their outage percentage\noutput \"all_available_cities\" {\n    value = data.mcbroken_cities.all.cities\n}\n\n// Get outage percentage of a specific city\noutput \"user_specified_city\" {\n    value = data.mcbroken_city.Dallas.broken\n}\n\n// When user specified city isn't found, return -1\noutput \"user_specified_city_not_found\" {\n    value = data.mcbroken_city.not_found.broken\n}\n\n# Apply complete! Resources: 0 added, 0 changed, 0 destroyed.\n\n# Outputs:\n\n# all_available_cities = [\n#   {\n#     \"broken\" = 13.04\n#     \"city\" = \"New York\"\n#   },\n#   {\n#     \"broken\" = 13.04\n#     \"city\" = \"San diego\"\n#   },\n#   {\n#     \"broken\" = 12.5\n#     \"city\" = \"Philadelphia\"\n#   },\n#   {\n#     \"broken\" = 11.11\n#     \"city\" = \"Boston\"\n#   },\n#   {\n#     \"broken\" = 10.81\n#     \"city\" = \"Washington\"\n#   },\n#   {\n#     \"broken\" = 10.53\n#     \"city\" = \"Los Angeles\"\n#   },\n#   {\n#     \"broken\" = 9.88\n#     \"city\" = \"Chicago\"\n#   },\n#   {\n#     \"broken\" = 8.51\n#     \"city\" = \"Phoenix\"\n#   },\n#   {\n#     \"broken\" = 8.11\n#     \"city\" = \"Dallas\"\n#   },\n#   {\n#     \"broken\" = 8.05\n#     \"city\" = \"Houston\"\n#   },\n#   {\n#     \"broken\" = 7.41\n#     \"city\" = \"San Jose\"\n#   },\n#   {\n#     \"broken\" = 6.67\n#     \"city\" = \"San Francisco\"\n#   },\n#   {\n#     \"broken\" = 3.77\n#     \"city\" = \"San antonio\"\n#   },\n#   {\n#     \"broken\" = 0\n#     \"city\" = \"Seattle\"\n#   },\n# ]\n# global_broken_average = 7.45\n# user_specified_city = 8.11\n# user_specified_city_not_found = -1\n```\n\n## Development\n\n### Linting\n\n```bash\nmake lint\n```\n\n### Testing\n\n```bash\nmake test\n```\n\n### Mac\n\n```bash\nmake build-mac \u0026\u0026 \\\ncd examples \u0026\u0026 \\\nterraform init \u0026\u0026 \\\nterraform apply\n```\n\n### Linux\n\n```bash\nmake build-linux \u0026\u0026 \\\ncd examples \u0026\u0026 \\\nterraform init \u0026\u0026 \\\nterraform apply\n```\n\n### Windows\n\n![alt text](https://media.giphy.com/media/4cuyucPeVWbNS/giphy.gif)\n\n## FAQ\n\n### Is this based on ice cream machines or ice machines? What is the difference?\n\nThis is based on ice cream machines, not ice machines.\nIce machines produce ice for drinks, while ice cream machines produce frozen milk product based treats.\n\nPlease don't use this project to rely on _ice machines_ or your results will be incorrect.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirca10a%2Fterraform-provider-mcbroken","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcirca10a%2Fterraform-provider-mcbroken","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirca10a%2Fterraform-provider-mcbroken/lists"}