This repository was archived by the owner on Mar 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathvariables.tf
More file actions
88 lines (78 loc) · 2.3 KB
/
variables.tf
File metadata and controls
88 lines (78 loc) · 2.3 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
variable "resource_group_name" {
default = "prefect_agent"
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
}
variable "resource_group_location" {
default = "eastus"
description = "Location of the resource group."
}
variable "vnet_name" {
type = string
default = "prefectVnet"
description = "Name of the Vnet to create"
}
variable "subnet_name" {
type = string
default = "prefectSubnet"
description = "Name of the subnet to create"
}
variable "vnet_id" {
type = list(string)
default = ["10.0.0.0/16"]
description = "IDs of the Vnets that will host the Prefect agent"
}
variable "subnet_id" {
type = list(string)
default = ["10.0.1.0/24"]
description = "IDs of the subnets that will host the Prefect agent"
}
variable "default_nsg" {
description = "Standard basic NSG to allow SSH"
type = object({
name = string
priority = number
direction = string
access = string
protocol = string
source_port_range = string
destination_port_range = string
source_address_prefix = string
destination_address_prefix = string
})
default = {
name = "SSH"
priority = 1001
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "22"
source_address_prefix = "*"
destination_address_prefix = "*"
}
}
variable "source_image" {
description = "Standard configuration Azure VM"
type = object({
publisher = string
offer = string
sku = string
version = string
})
default = {
publisher = "Canonical"
offer = "0001-com-ubuntu-server-focal"
sku = "20_04-lts-gen2"
version = "latest"
}
}
variable "admin_user" {
type = string
default = "azureuser"
description = "The default user for the configured azure vm"
}
variable "default_queue" {
type = string
default = "default"
description = "The default work queue used to start and configure the prefect agent"
}