-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
56 lines (45 loc) · 992 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.17.0"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.0"
}
}
required_version = "= 1.2.4"
backend "azurerm" {}
}
# Configure the Microsoft Azure Provider
provider "azurerm" {
features {}
}
data "azurerm_client_config" "current" {}
provider "github" {
token = var.github_token
owner = "devstarops-org"
}
data "github_user" "current" {
username = "devstarops"
}
provider "cloudflare" {
api_client_logging = false
api_user_service_key = var.cloudflare_service_key
api_token = var.cloudflare_api_token
}
variable "cloudflare_service_key" {
type = string
sensitive = true
}
variable "cloudflare_api_token" {
type = string
sensitive = true
}
output "tenant_id" {
value = data.azurerm_client_config.current.tenant_id
}
output "subscription_id" {
value = data.azurerm_client_config.current.subscription_id
}