-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathvariables.pkr.hcl
54 lines (47 loc) · 1.32 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
variable "region" {
description = "The AWS region"
type = string
}
variable "instance_type" {
default = "trn1.2xlarge"
description = "EC2 machine type for building AMI"
type = string
}
variable "source_ami" {
default = "ami-0274e546d67626305"
description = "Base Image"
type = string
/*
To get latest value, run the following command:
aws ec2 describe-images \
--region us-east-1 \
--owners amazon \
--filters 'Name=name,Values=Deep Learning AMI Neuron PyTorch 1.13 (Ubuntu 20.04) ????????' 'Name=state,Values=available' \
--query 'reverse(sort_by(Images, &CreationDate))[:1].ImageId' \
--output text
*/
}
variable "ssh_username" {
default = "ubuntu"
description = "Username to connect to SSH with"
type = string
}
variable "optimum_version" {
description = "Optimum Neuron version to install"
type = string
}
variable "transformers_version" {
default = "4.36.2"
description = "Transformers version to install"
type = string
}
variable "ami_users" {
default = ["754289655784", "558105141721"]
description = "AWS accounts to share AMI with"
type = list(string)
}
variable "ami_regions" {
default = ["eu-west-1"]
description = "AWS regions to share AMI with"
type = list(string)
}