-
Notifications
You must be signed in to change notification settings - Fork 2
/
cytominer_ami.json
53 lines (53 loc) · 1.21 KB
/
cytominer_ami.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
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"security_group_ids": "",
"subnet_id": "",
"vpc_id": ""
},
"builders": [{
"access_key": "{{user `aws_access_key`}}",
"ami_name": "cytomining/images/hvm-ssd/cytominer-ubuntu-bionic-18.04-amd64-server-{{timestamp}}",
"associate_public_ip_address" : true,
"instance_type": "c4.xlarge",
"region": "us-east-1",
"secret_key": "{{user `aws_secret_key`}}",
"security_group_ids": "{{user `security_group_ids`}}",
"source_ami_filter": {
"filters": {
"name": "ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-*",
"root-device-type": "ebs",
"virtualization-type": "hvm"
},
"most_recent": true,
"owners": [
"099720109477"
]
},
"ssh_username": "ubuntu",
"subnet_id" : "{{user `subnet_id`}}",
"type" : "amazon-ebs",
"vpc_id" : "{{user `vpc_id`}}"
}],
"provisioners": [{
"type": "shell",
"script": "init.sh"
},
{
"type": "shell",
"script": "tools.sh"
},
{
"type": "shell",
"script": "s3.sh"
},
{
"type": "shell",
"script": "efs.sh"
},
{
"type": "shell",
"script": "python.sh"
}]
}