File tree 2 files changed +5
-6
lines changed
infrastructure/ami/hcl2-files
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ build {
17
17
inline = [" echo 'source /opt/aws_neuron_venv_pytorch/bin/activate' >> /home/ubuntu/.bashrc" ]
18
18
}
19
19
provisioner "file" {
20
- source = " scripts/welcome-msg.sh"
20
+ source = " scripts/welcome-msg.sh"
21
21
destination = " /tmp/99-custom-message"
22
22
}
23
23
provisioner "shell" {
24
24
inline = [
25
- " sudo mv /tmp/99-custom-message /etc/update-motd.d/" ,
26
- " sudo chmod +x /etc/update-motd.d/99-custom-message" ,
27
- ]
25
+ " sudo mv /tmp/99-custom-message /etc/update-motd.d/" ,
26
+ " sudo chmod +x /etc/update-motd.d/99-custom-message" ,
27
+ ]
28
28
}
29
29
}
Original file line number Diff line number Diff line change 1
1
source "amazon-ebs" "ubuntu" {
2
- ami_name = " huggingface-neuron-dl-ami-ubuntu-20.04_{{timestamp }}"
2
+ ami_name = " huggingface-neuron-{{isotime \" 2006-01-02T15-04-05Z \" }}"
3
3
instance_type = var. instance_type
4
4
region = var. region
5
5
source_ami = var. source_ami
6
6
ssh_username = var. ssh_username
7
7
launch_block_device_mappings {
8
8
device_name = " /dev/sda1"
9
- // encrypted = true
10
9
volume_size = 512
11
10
volume_type = " gp2"
12
11
delete_on_termination = true
You can’t perform that action at this time.
0 commit comments