-
Notifications
You must be signed in to change notification settings - Fork 0
/
variable.tf
69 lines (49 loc) · 1.19 KB
/
variable.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
variable "region" {
type = string
default = "us-east-1"
description = "default aws region"
}
variable "ebsvol_size" {
type = number
default = 50
description = "/opt/apps mount size"
}
variable "ebs_type" {
type = string
default = "gp2"
}
variable "image_id" {
type = string
description = "The id of the machine image (AMI) to use for the server."
default = "null"
validation {
condition = length(var.image_id) > 4 && substr(var.image_id, 0, 4) == "ami-"
error_message = "The image_id value must be a valid AMI id, starting with \"ami-\"."
}
}
variable "image_version" {
type = string
default = "1.0.0"
}
variable "subnet_id" {
default = "null"
}
variable "security_group_id" {
type = string
default = "null"
}
variable "aws_s3_bucket_object" {
type = string
description = "The S3 bucket name to upload image builder componet file."
default = "null"
}
variable "name_recipe" {
type = string
description = "Image builder recipe name"
default = "null"
}
variable "keypair_name" {
default = "null"
description = "ssh key name use to ssh AMI"
type = string
}