-
Notifications
You must be signed in to change notification settings - Fork 31
/
auth.tf
28 lines (26 loc) · 905 Bytes
/
auth.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
#-----------------------------------------------------------
# Provider Authentication | rlevchenko.com
#----------------------------------------------------------
variable "client_secret" {} # Variable to store SP's password
variable "client_id" {} # Application ID
variable "subscr_id" {} # Subscription ID
variable "tenant_id" {} # Tenant ID
# Terraform and Provider Version Constraints
terraform {
required_version = ">=0.15" # tested with the 0.15.5
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 2.62" # the latest is recommended/ tested with 2.62.0
}
}
}
provider "azurerm" {
subscription_id = var.subscr_id
client_id = var.client_id
client_secret = var.client_secret
tenant_id = var.tenant_id
features {}
}
#-----------------------------------------------------------
# Roman Levchenko | rlevchenko.com