Skip to content

Commit 4339194

Browse files
authored
Add Terraform variables for Azure resources
Define variables for resource group, location, name prefix, user principal ID, and Cosmos DB local auth.
1 parent 092f1da commit 4339194

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
variable "resource_group_name" {
2+
type = string
3+
description = "Existing resource group name where resources will be deployed"
4+
}
5+
6+
variable "location" {
7+
type = string
8+
description = "Azure region for resources"
9+
default = "eastus"
10+
}
11+
12+
variable "name_prefix" {
13+
type = string
14+
description = "Prefix for all resource names (will append random suffix)"
15+
default = "zava"
16+
}
17+
18+
variable "user_principal_id" {
19+
type = string
20+
description = "Object ID of the user/principal to grant Cosmos DB data contributor access. Defaults to current Azure CLI user."
21+
default = null
22+
}
23+
24+
variable "enable_cosmos_local_auth" {
25+
type = bool
26+
description = "Whether to enable local auth on Cosmos DB account"
27+
default = true
28+
}

0 commit comments

Comments
 (0)