GithubHelp home page GithubHelp logo

aarchila / terraform-provider-dominos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nat-henderson/terraform-provider-dominos

0.0 0.0 0.0 18.33 MB

The Terraform plugin for the Dominos Pizza provider.

License: MIT License

Go 99.70% Makefile 0.30%

terraform-provider-dominos's Introduction

Terraform Provider for Dominos Pizza

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 if you have trouble.

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.

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 for more information past the quickstart, as well as some caveats it's probably worth being aware of.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.