-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer.json
46 lines (46 loc) · 1.32 KB
/
packer.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
{
"variables": {
"aws_region": "us-west-2",
"source_ami": "ami-1d668865",
"ts": "{{timestamp}}",
"image_version": "1.0.0"
},
"builders": [
{
"type": "amazon-ebs",
"region": "{{user `aws_region`}}",
"source_ami": "{{user `source_ami`}}",
"instance_type": "t2.micro",
"ssh_username": "ec2-user",
"ami_name": "coldbrew-cli-ami-{{user `ts`}}",
"ami_groups": ["all"],
"ami_regions": [
"us-east-1",
"us-east-2",
"us-west-1",
"eu-central-1",
"eu-west-1",
"ap-northeast-1",
"ap-southeast-1",
"ap-southeast-2"
],
"tags": {
"coldbrew_cli_created": "{{user `ts`}}",
"coldbrew_cli_image_version": "{{user `image_version`}}"
},
"run_tags": {
"coldbrew_cli_created": "{{user `ts`}}",
"coldbrew_cli_image_version": "{{user `image_version`}}"
}
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"sudo yum update -y",
"sudo yum install -y awslogs"
]
}
]
}