-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
60 lines (50 loc) · 1.39 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
terraform {
required_providers {
azurerm = {
# https://github.com/hashicorp/terraform-provider-azurerm/releases
source = "hashicorp/azurerm"
version = "3.97.1"
}
github = {
# https://github.com/integrations/terraform-provider-github/releases
source = "integrations/github"
version = "6.2.0"
}
}
}
################################################################################
# Provider configurations
provider "azurerm" {
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
skip_provider_registration = true
}
provider "github" {
owner = var.github_org
token = var.github_token
}
################################################################################
# Global variables
locals {
tags = {
Type = "workshop"
Customer = "agenda"
}
}
################################################################################
# Team configurations
data "azurerm_client_config" "current" {}
module "team" {
source = "./team"
for_each = toset(["demo"])
azure_tenant_id = data.azurerm_client_config.current.tenant_id
azure_subscription_id = data.azurerm_client_config.current.subscription_id
azure_location = var.location
github_org = var.github_org
github_token = var.github_token
name = each.value
tags = local.tags
}