-
Notifications
You must be signed in to change notification settings - Fork 0
/
ggz.json
49 lines (49 loc) · 1.49 KB
/
ggz.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
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"ssh_bastion_host": "",
"ssh_bastion_port": "22",
"ssh_bastion_username": "",
"ssh_bastion_private_key_file": "",
"region": "ap-southeast-1"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "{{user `region`}}",
"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.micro",
"ssh_username": "ubuntu",
"ami_name": "ggz-docker-image-{{isotime | clean_ami_name}}",
"tags": {
"Name": "ggz",
"Environment": "production"
},
"communicator": "ssh",
"ssh_bastion_host": "{{user `ssh_bastion_host`}}",
"ssh_bastion_port": "{{user `ssh_bastion_port`}}",
"ssh_bastion_username": "{{user `ssh_bastion_username`}}",
"ssh_bastion_private_key_file": "{{user `ssh_bastion_private_key_file`}}"
}],
"provisioners": [{
"type": "file",
"source": "{{template_dir}}/welcome.txt",
"destination": "/home/ubuntu/"
},
{
"type": "shell",
"script": "{{template_dir}}/docker.sh",
"execute_command": "echo 'ubuntu' | sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
}
]
}