-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
42 lines (33 loc) · 817 Bytes
/
main.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
variable "region" {
type = string
default = "eu-central-1"
}
#since terraform is not supporting thing group yet, we will user this variable as prefix
variable "thing_group" {
type = string
}
variable "organization_name" {
type = string
}
variable "device_ids" {
description = "Create thing for users"
type = list(string)
}
provider "aws" {
region = "${var.region}"
}
terraform {
backend "s3" {
bucket = "jff-terraform-eu-central-1"
key = "e-ticket/terraform.tfstate"
region = "eu-central-1"
}
}
module "thing" {
source = "./thing"
outputs_path = "${path.module}/outputs"
region = "${var.region}"
thing_group = "${var.thing_group}"
device_ids = "${var.device_ids}"
organization_name = "${var.organization_name}"
}