-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmulti_test.json
57 lines (55 loc) · 1.69 KB
/
multi_test.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
{
"variables": {
"AWS_ACCESS_KEY": "{{ env `AWS_ACCESS_KEY` }}",
"AWS_SECRET_KEY": "{{ env `AWS_SECRET_KEY` }}"
},
"builders": [
{
"type": "amazon-ebs",
"vpc_id": "{{user `AWS_VPC_ID`}}",
"subnet_id": "{{user `AWS_SUBNET_ID`}}",
"security_group_ids":["{{user `AWS_SG_ID`}}"],
"ami_name": "Test Ubuntu {{timestamp}}",
"ami_description": "Test Ubuntu Image",
"access_key": "{{user `AWS_ACCESS_KEY`}}",
"secret_key": "{{user `AWS_SECRET_KEY`}}",
"region": "{{user `AWS_REGION`}}",
"instance_type": "t2.micro",
"source_ami": "{{user `AWS_AMI_ID`}}",
"ssh_username": "ubuntu",
"associate_public_ip_address": true,
"ssh_timeout" : "1m",
"run_tags": {
"Name": "base-ubuntu build",
"Base": "base-ubuntu",
"Builder": "packer"
}
},
{
"type": "docker",
"name": "base-ubuntu-docker",
"image": "ubuntu:latest",
"pull": false,
"commit": false
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"echo foo",
"touch /tmp/test"
]
}
],
"post-processors": [
[
{
"type": "template",
"template_file": "amazon_test.tfvars",
"output_file": "multi_test_out.tfvars",
"keep_input_artifact": true
}
]
]
}