-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
45 lines (35 loc) · 996 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
39
40
41
42
43
44
45
#------------------------------------------------------------------------------
# Variables that need to be set
#------------------------------------------------------------------------------
variable "tf_project" {
description = "The name of the project folder that inputs.tfvars is in"
type = string
}
variable "region" {
type = string
}
variable "gcp_project" {
type = string
}
# Name variable definition
variable "name" {
default = "foo"
}
# Defining a variable source OS image for an instance
variable "image" {
default = "ubuntu-os-cloud/ubuntu-minimal-1804-lts"
}
# Definition of an instance type variable depending on the choice of tariff
variable "server_type" {
default = "n1-standard-2"
}
# Definition of the region in which the instance will be created
variable "zone" {
default = "us-west1-a"
}
# Determining the ssh key that will be added to the instance when creating
variable "public_key" {}
variable "disk_size" {
type = number
default = 20
}