forked from tasador/terraform-azuread-service-principal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
38 lines (32 loc) · 937 Bytes
/
variables.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
variable "name" {
type = string
description = "The name of the service principal."
}
variable "password" {
type = string
default = ""
description = "A password for the service principal."
}
variable "end_date" {
type = string
default = null
description = "The relative duration or RFC3339 date after which the password expire."
}
variable "years" {
type = number
default = null
description = "The number of years after which the password expire. Either this or `end_date` should be specified, but not both."
}
variable "role" {
type = string
default = ""
description = "The name of a role for the service principal."
}
variable "scopes" {
type = list(string)
default = []
description = "A list of scopes the role assignment applies to."
}
locals {
scopes = length(var.scopes) > 0 ? var.scopes : [data.azurerm_subscription.main.id]
}