Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nat-henderson/terraform-provider-dominos
The Terraform plugin for the Dominos Pizza provider.
https://github.com/nat-henderson/terraform-provider-dominos
Last synced: 30 days ago
JSON representation
The Terraform plugin for the Dominos Pizza provider.
- Host: GitHub
- URL: https://github.com/nat-henderson/terraform-provider-dominos
- Owner: nat-henderson
- License: mit
- Created: 2019-03-29T14:47:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T17:21:34.000Z (about 1 year ago)
- Last Synced: 2024-05-23T02:31:04.414Z (6 months ago)
- Language: Go
- Size: 17.9 MB
- Stars: 1,088
- Watchers: 14
- Forks: 82
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tf - terraform-provider-dominos - Provider for Dominos Pizza. (Providers / Vendor supported providers)
README
Terraform Provider for Dominos Pizza
==================# [Documentation](https://nat-henderson.github.io/terraform-provider-dominos/)
# Quickstart
Download `bin/terraform-provider-dominos` and place it on your machine at `~/.terraform.d/plugins/terraform-provider-dominos`. Make sure to `chmod +x` it. This is the normal way to install third-party providers - follow instructions at [Installing 3rd Party Plugins](https://www.terraform.io/docs/configuration/providers.html#third-party-plugins) if you have trouble.
```sh
mkdir ~/.terraform.d/plugins && \
wget https://github.com/nat-henderson/terraform-provider-dominos/raw/master/bin/terraform-provider-dominos -O ~/.terraform.d/plugins/terraform-provider-dominos && \
chmod +x ~/.terraform.d/plugins/terraform-provider-dominos
```Then write your config. Here's a sample config - a variation on this worked for me last night.
```hcl
provider "dominos" {
first_name = "My"
last_name = "Name"
email_address = "[email protected]"
phone_number = "15555555555"credit_card {
number = 123456789101112
cvv = 1314
date = "15/16"
zip = 18192
}
}data "dominos_address" "addr" {
street = "123 Main St"
city = "Anytown"
state = "WA"
zip = "02122"
}data "dominos_store" "store" {
address_url_object = "${data.dominos_address.addr.url_object}"
}data "dominos_menu_item" "item" {
store_id = "${data.dominos_store.store.store_id}"
query_string = ["philly", "medium"]
}resource "dominos_order" "order" {
address_api_object = "${data.dominos_address.addr.api_object}"
item_codes = ["${data.dominos_menu_item.item.matches.0.code}"]
store_id = "${data.dominos_store.store.store_id}"
}
````terraform init` as usual and `plan`! `apply` when ready - but use caution, since this is going to charge you money.
Please view the docs [here](https://nat-henderson.github.io/terraform-provider-dominos/) for more information past the quickstart, as well as some caveats it's probably worth being aware of.