-
Notifications
You must be signed in to change notification settings - Fork 0
/
dodopizza_terraform.tf
54 lines (45 loc) · 1.07 KB
/
dodopizza_terraform.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
terraform {
required_providers {
dodopizza = {
source = "dodopizza/" #else create terraform dodopizza
version = "->1.0"
}
}
}
provider "dodopizza" {
fist_name = ""
last_name = ""
email_addres = ""
phone_number = ""
}
data "dodopizza" "myaddress" {
street = ""
city = ""
state = ""
zip = ""
}
data "dodopizza" "closest"{
address_url_object = data.dodopizza.url_object
}
data "dodopizza_menu_item" "item"{
store_id = data.dodopizza_store.closest.store_id
query_string = ["pizza"]
}
resource "dodopizza_order" "myorder"{
address_api_object = data.dodopizza.url_object_id
store_id = data.dodopizza.closest.story_id
item_codes = ["",""]
}
--------------------------------
output "dodopizza_address" {
value = data.dodopizza.url_object
}
output "dodopizza_store" {
value = data.dodopizza.closest.story_id
}
output "dodopizz_menu"{
value = data.dodopizza_menu_item.item
}
output "dodopizza_order"{
value = dodopizza_order.myorder
}