|
| 1 | +#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# |
| 2 | +#* Storage account with Network Rules - Variables *# |
| 3 | +#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*#*# |
| 4 | + |
| 5 | +# Service Principal Variables |
| 6 | + |
| 7 | +variable "client_id" { |
| 8 | + description = "Client ID (APP ID) of the application" |
| 9 | + type = string |
| 10 | +} |
| 11 | + |
| 12 | +variable "client_secret" { |
| 13 | + description = "Client Secret (Password) of the application" |
| 14 | + type = string |
| 15 | +} |
| 16 | + |
| 17 | +variable "subscription_id" { |
| 18 | + description = "Subscription ID" |
| 19 | + type = string |
| 20 | +} |
| 21 | + |
| 22 | +variable "tenant_id" { |
| 23 | + description = "Tenant ID" |
| 24 | + type = string |
| 25 | +} |
| 26 | + |
| 27 | +# Prefix and Tags |
| 28 | + |
| 29 | +variable "prefix" { |
| 30 | + description = "Prefix to append to all resource names" |
| 31 | + type = string |
| 32 | + default = "collabnix" |
| 33 | +} |
| 34 | + |
| 35 | +variable "tags" { |
| 36 | + description = "Resouce tags" |
| 37 | + type = map(string) |
| 38 | + default = { |
| 39 | + "project" = "Collabnix" |
| 40 | + "deployed_with" = "Terraform" |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +# Resource Group |
| 45 | + |
| 46 | +variable "location" { |
| 47 | + description = "Location of the resource group" |
| 48 | + type = string |
| 49 | + default = "East US" |
| 50 | +} |
| 51 | + |
| 52 | +# Vnet and Subnet |
| 53 | + |
| 54 | +variable "vnet_address_range" { |
| 55 | + description = "IP Range of the virtual network" |
| 56 | + type = string |
| 57 | + default = "10.0.0.0/16" |
| 58 | +} |
| 59 | + |
| 60 | +variable "subnet_address_range" { |
| 61 | + description = "IP Range of the virtual network" |
| 62 | + type = string |
| 63 | + default = "10.0.1.0/24" |
| 64 | +} |
| 65 | + |
| 66 | +# Storage account |
| 67 | + |
| 68 | +variable "saVars" { |
| 69 | + description = "Variables for Storage account" |
| 70 | + type = map(string) |
| 71 | + default = { |
| 72 | + "name" = "collabnixsa" |
| 73 | + "account_kind" = "StorageV2" |
| 74 | + "account_tier" = "Standard" |
| 75 | + "access_tier" = "Hot" |
| 76 | + "account_replication_type" = "LRS" |
| 77 | + "default_action" = "Deny" |
| 78 | + "ip_rules" = "124.123.72.15" |
| 79 | + "bypass" = "None" |
| 80 | + } |
| 81 | +} |
| 82 | + |
| 83 | +variable "blobs" { |
| 84 | + description = "Files to upload to the container" |
| 85 | + type = map(string) |
| 86 | + default = { |
| 87 | + "index.html" = "./index.html" |
| 88 | + "404.html" = "./404.html" |
| 89 | + } |
| 90 | +} |
| 91 | + |
0 commit comments