-
Notifications
You must be signed in to change notification settings - Fork 1
/
terraform.tf
46 lines (41 loc) · 922 Bytes
/
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
terraform {
backend "azurerm" {
resource_group_name = "rg-terraform-tstate"
storage_account_name = "satstate19285"
container_name = "terraform-state"
key = "terraform.tfstate"
}
}
# Configure the Azure provider
provider "azurerm" {
# The "feature" block is required for AzureRM provider 2.x.
# If you are using version 1.x, the "features" block is not allowed.
features {}
}
terraform {
required_providers {
hiera5 = {
source = "sbitio/hiera5"
version = "0.2.7"
}
}
}
provider "hiera5" {
# Optional
config = "~/hiera.yaml"
# Optional
scope = {
environment = "live"
service = "api"
# Complex variables are supported using pdialect
facts = "{timezone=>'CET'}"
}
# Optional
merge = "deep"
}
data "hiera5_hash" "aws_tags" {
key = "aws_tags"
}
output "output" {
value = data.hiera5_hash.aws_tags
}