-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdi_platform.json
38 lines (38 loc) · 1.2 KB
/
di_platform.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
{
"variables": {
"platform_name": "{{env `AWS_EB_PLATFORM_NAME`}}",
"platform_version": "{{env `AWS_EB_PLATFORM_VERSION`}}",
"platform_arn": "{{env `AWS_EB_PLATFORM_ARN`}}"
},
"builders": [
{
"type": "amazon-ebs",
"name": "Ubuntu 16.04 LTS - Xenial (HVM)",
"region": "us-east-1",
"source_ami": "ami-dc2d10a6",
"instance_type": "t2.small",
"ssh_username": "ubuntu",
"ssh_pty": "true",
"ami_name": "PHP7 running on Ubuntu Server 16.04 LTS (built on {{isotime | clean_ami_name}})",
"tags": {
"eb_platform_name": "{{user `platform_name`}}",
"eb_platform_version": "{{user `platform_version`}}",
"eb_platform_arn": "{{user `platform_arn`}}"
}
}
],
"provisioners": [
{
"type": "file",
"source": "builder",
"destination": "/tmp/"
},
{
"type": "shell",
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo {{ .Path }}",
"scripts": [
"builder/builder.sh"
]
}
]
}