-
Notifications
You must be signed in to change notification settings - Fork 3
/
guix-base.json
77 lines (77 loc) · 1.73 KB
/
guix-base.json
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
{
"variables": {
"aws_access_key": "{{ env `AWS_ACCESS_KEY`}}",
"aws_secret_key": "{{ env `AWS_SECRET_KEY`}}"
},
"provisioners": [
{
"type": "file",
"source": "authorized_keys",
"destination": "/home/ubuntu/authorized_keys"
},
{
"type": "file",
"source": "sudoers",
"destination": "/home/ubuntu/sudoers"
},
{
"type": "file",
"source": "aws-fetch-ssh-key",
"destination": "/home/ubuntu/aws-fetch-ssh-key"
},
{
"type": "file",
"source": "config.scm",
"destination": "/home/ubuntu/config.scm"
},
{
"type": "file",
"source": "cow-store.sh",
"destination": "/home/ubuntu/cow-store.sh"
},
{
"type": "file",
"source": "guix.sh",
"destination": "/home/ubuntu/guix.sh"
},
{
"type": "shell",
"inline": "sudo bash /home/ubuntu/guix.sh"
}
],
"builders": [{
"type": "amazon-ebssurrogate",
"ami_virtualization_type": "hvm",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "eu-west-1",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"name": "ubuntu/images/*ubuntu-xenial-16.04-amd64-server-*",
"root-device-type": "ebs"
},
"owners": ["099720109477"],
"most_recent": true
},
"instance_type": "t2.small",
"ssh_username": "ubuntu",
"ami_name": "guix-packer {{timestamp}}",
"ena_support": true,
"launch_block_device_mappings" : [
{
"volume_type" : "gp2",
"device_name" : "/dev/xvdf",
"delete_on_termination" : false,
"volume_size" : 8
}
],
"ami_root_device": {
"source_device_name": "/dev/xvdf",
"device_name": "/dev/xvda",
"delete_on_termination": true,
"volume_size": 8,
"volume_type": "gp2"
}
}]
}