-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.pkr.hcl
83 lines (70 loc) · 2.09 KB
/
variables.pkr.hcl
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
variable "aws_region" {
description = "Region where AMI will be created"
type = string
default = "us-west-2"
}
variable "data_volume_size" {
description = "Size of the AMI data EBS volume"
type = number
default = 50
}
variable "root_volume_size" {
description = "Size of the AMI root EBS volume"
type = number
default = 10
}
variable "eks_version" {
description = "The EKS cluster version associated with the AMI created"
type = string
default = "1.22"
}
variable "http_proxy" {
description = "The HTTP proxy to set on the AMI created"
type = string
default = ""
}
variable "https_proxy" {
description = "The HTTPS proxy to set on the AMI created"
type = string
default = ""
}
variable "no_proxy" {
description = "Disables proxying on the AMI created"
type = string
default = ""
}
variable "source_ami_arch" {
description = "The architecture of the source AMI. Either `x86_64` or `arm64`"
type = string
default = "x86_64"
}
variable "source_ami_owner" {
description = "The owner of the source AMI"
type = string
default = "amazon"
}
variable "source_ami_owner_govcloud" {
description = "The owner of the source AMI in the GovCloud region"
type = string
default = "219670896067"
}
variable "source_ami_ssh_user" {
description = "The SSH user used when connecting to the AMI for provisioning"
type = string
default = "ec2-user"
}
variable "subnet_id" {
description = "The subnet ID where the AMI can be created. Required if a default VPC is not present in the `aws_region`"
type = string
default = null
}
variable "instance_type" {
description = "The instance type to use when creating the AMI. Note: this should be adjusted based on the `source_ami_arch` provided"
type = string
default = "c6i.large"
}
variable "ami_name_prefix" {
description = "The prefix to use when creating the AMI name. i.e. - `<ami_name_prefix>-<eks_version>-<timestamp>"
type = string
default = "amazon-eks-node"
}