All Projects → circa10a → terraform-provider-mcbroken

circa10a / terraform-provider-mcbroken

Licence: MIT license
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/

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to terraform-provider-mcbroken

terraform-provider-tsuru
Terraform provider for tsuru
Stars: ✭ 17 (-41.38%)
Mutual labels:  terraform-provider
terraform-provider-rancher
Terraform Rancher provider
Stars: ✭ 35 (+20.69%)
Mutual labels:  terraform-provider
terraform-provider-artifactory
Terraform provider for managing Artifactory
Stars: ✭ 17 (-41.38%)
Mutual labels:  terraform-provider
terraform-provider-external
Utility provider that exists to provide an interface between Terraform and external programs. Useful for integrating Terraform with a system for which a first-class provider does not exist.
Stars: ✭ 136 (+368.97%)
Mutual labels:  terraform-provider
terraform-provider-twitter
No description or website provided.
Stars: ✭ 24 (-17.24%)
Mutual labels:  terraform-provider
terraform-provider-circleci
Terraform provider for CircleCI
Stars: ✭ 94 (+224.14%)
Mutual labels:  terraform-provider
Terraform Provider Vault
Terraform Vault provider
Stars: ✭ 244 (+741.38%)
Mutual labels:  terraform-provider
terraform-provider-upcloud
Terraform provider for UpCloud
Stars: ✭ 52 (+79.31%)
Mutual labels:  terraform-provider
terraform-provider-commercetools
Terraform provider for commercetools
Stars: ✭ 58 (+100%)
Mutual labels:  terraform-provider
terraform-provider-azurerm
Terraform provider for Azure Resource Manager
Stars: ✭ 3,829 (+13103.45%)
Mutual labels:  terraform-provider
terraform-provider-hcp
Terraform provider for HashiCorp Cloud Platform.
Stars: ✭ 36 (+24.14%)
Mutual labels:  terraform-provider
terraform-provider-logicmonitor
Terraform LogicMonitor provider.
Stars: ✭ 19 (-34.48%)
Mutual labels:  terraform-provider
terraform-provider-argocd
Terraform provider for ArgoCD
Stars: ✭ 245 (+744.83%)
Mutual labels:  terraform-provider
terraform-provider-mysql
Terraform MySQL provider – This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
Stars: ✭ 59 (+103.45%)
Mutual labels:  terraform-provider
terraform-provider-fusionauth
registry.terraform.io/providers/gpsinsight/fusionauth/latest
Stars: ✭ 23 (-20.69%)
Mutual labels:  terraform-provider
Terraform Provider Auth0
Auth0 Terraform Provider
Stars: ✭ 252 (+768.97%)
Mutual labels:  terraform-provider
terraform-provider-scaleway
Terraform Scaleway provider
Stars: ✭ 171 (+489.66%)
Mutual labels:  terraform-provider
terraform-provider-sysdig
Sysdig Terraform provider. Allow to handle Sysdig Secure policies as code.
Stars: ✭ 41 (+41.38%)
Mutual labels:  terraform-provider
terraform-provider-redfish
Terraform provider for Redfish REST APIs
Stars: ✭ 54 (+86.21%)
Mutual labels:  terraform-provider
terraform-provider-cisco-aci
Terraform provider for automating Cisco ACI enabled networks
Stars: ✭ 14 (-51.72%)
Mutual labels:  terraform-provider

terraform-provider-mcbroken

Build Status Go Report Card GitHub release (latest by date) Buy Me A Coffee

Base 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.

Usage

terraform {
  required_providers {
    mcbroken = {
      source  = "circa10a/mcbroken"
    }
  }
}

provider "mcbroken" {}

// Data source to get all available cities/national average of broken ice cream machines
data "mcbroken_cities" "all" {}

// Data source to get current outage percentage of a specific city
data "mcbroken_city" "Dallas" {
    city = "Dallas"
}

// If specified city isn't found, returns -1
data "mcbroken_city" "not_found" {
    city = "not_found"
}

// Get national average of broken ice cream machines
output "global_broken_average" {
    value = data.mcbroken_cities.all.broken
}

// Get list of all cities and their outage percentage
output "all_available_cities" {
    value = data.mcbroken_cities.all.cities
}

// Get outage percentage of a specific city
output "user_specified_city" {
    value = data.mcbroken_city.Dallas.broken
}

// When user specified city isn't found, return -1
output "user_specified_city_not_found" {
    value = data.mcbroken_city.not_found.broken
}

# Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

# Outputs:

# all_available_cities = [
#   {
#     "broken" = 13.04
#     "city" = "New York"
#   },
#   {
#     "broken" = 13.04
#     "city" = "San diego"
#   },
#   {
#     "broken" = 12.5
#     "city" = "Philadelphia"
#   },
#   {
#     "broken" = 11.11
#     "city" = "Boston"
#   },
#   {
#     "broken" = 10.81
#     "city" = "Washington"
#   },
#   {
#     "broken" = 10.53
#     "city" = "Los Angeles"
#   },
#   {
#     "broken" = 9.88
#     "city" = "Chicago"
#   },
#   {
#     "broken" = 8.51
#     "city" = "Phoenix"
#   },
#   {
#     "broken" = 8.11
#     "city" = "Dallas"
#   },
#   {
#     "broken" = 8.05
#     "city" = "Houston"
#   },
#   {
#     "broken" = 7.41
#     "city" = "San Jose"
#   },
#   {
#     "broken" = 6.67
#     "city" = "San Francisco"
#   },
#   {
#     "broken" = 3.77
#     "city" = "San antonio"
#   },
#   {
#     "broken" = 0
#     "city" = "Seattle"
#   },
# ]
# global_broken_average = 7.45
# user_specified_city = 8.11
# user_specified_city_not_found = -1

Development

Linting

make lint

Testing

make test

Mac

make build-mac && \
cd examples && \
terraform init && \
terraform apply

Linux

make build-linux && \
cd examples && \
terraform init && \
terraform apply

Windows

alt text

FAQ

Is this based on ice cream machines or ice machines? What is the difference?

This is based on ice cream machines, not ice machines. Ice machines produce ice for drinks, while ice cream machines produce frozen milk product based treats.

Please don't use this project to rely on ice machines or your results will be incorrect.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].