forked from gruntwork-io/terratest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.json
59 lines (59 loc) · 1.87 KB
/
build.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
58
59
{
"min_packer_version": "1.0.4",
"variables": {
"aws_region": "us-east-1",
"ami_base_name": "",
"gcp_project_id": "",
"gcp_zone": "us-central1-a",
"oci_availability_domain": "",
"oci_base_image_ocid": "",
"oci_compartment_ocid": "",
"oci_pass_phrase": "",
"oci_subnet_ocid": ""
},
"builders": [{
"type": "amazon-ebs",
"ami_name": "{{user `ami_base_name`}}-terratest-packer-example",
"ami_description": "An example of how to create a custom AMI on top of Ubuntu",
"instance_type": "t2.micro",
"region": "{{user `aws_region`}}",
"source_ami_filter": {
"filters": {
"virtualization-type": "hvm",
"architecture": "x86_64",
"name": "*ubuntu-xenial-16.04-amd64-server-*",
"block-device-mapping.volume-type": "gp2",
"root-device-type": "ebs"
},
"owners": ["099720109477"],
"most_recent": true
},
"ssh_username": "ubuntu",
"encrypt_boot": false
}, {
"type": "googlecompute",
"image_name": "terratest-packer-example-{{isotime | clean_image_name}}",
"image_family": "terratest",
"project_id": "{{user `gcp_project_id`}}",
"source_image_family": "ubuntu-1804-lts",
"zone": "{{user `gcp_zone`}}",
"ssh_username": "ubuntu"
}, {
"type": "oracle-oci",
"image_name": "terratest-packer-example-{{isotime}}",
"availability_domain": "{{user `oci_availability_domain`}}",
"base_image_ocid": "{{user `oci_base_image_ocid`}}",
"compartment_ocid": "{{user `oci_compartment_ocid`}}",
"pass_phrase": "{{user `oci_pass_phrase`}}",
"shape": "VM.Standard2.1",
"ssh_username": "ubuntu",
"subnet_ocid": "{{user `oci_subnet_ocid`}}"
}],
"provisioners": [{
"type": "shell",
"inline": [
"sudo DEBIAN_FRONTEND=noninteractive apt-get update",
"sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y"
]
}]
}