-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathami.json
More file actions
31 lines (31 loc) · 849 Bytes
/
ami.json
File metadata and controls
31 lines (31 loc) · 849 Bytes
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
{
"variables": {
"AWS_ACCESS_KEY": "{{env `AWS_ACCESS_KEY_ID`}}",
"AWS_SECRET_KEY": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"BUILD_NUMBER": "{{env `BUILD_NUMBER`}}",
"REGIONS": "{{env `REGIONS`}}"
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `AWS_ACCESS_KEY`}}",
"secret_key": "{{user `AWS_SECRET_KEY`}}",
"region": "{{user `REGIONS`}}",
"ami_name": "docker_ami_{{ user `BUILD_NUMBER`}}",
"ami_groups": ["all"],
"source_ami": "ami-45b69e52",
"instance_type": "t2.small",
"ssh_username": "ubuntu",
"ssh_pty": "true",
"subnet_id": "subnet-ada31f80",
"vpc_id": "vpc-b56999d3"
}
],
"provisioners": [
{
"execute_command": "{{ .Vars }} sudo -E '{{ .Path }}'",
"script": "build_ami.sh",
"type": "shell"
}
]
}