-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathamazon.json
More file actions
56 lines (56 loc) · 1.16 KB
/
amazon.json
File metadata and controls
56 lines (56 loc) · 1.16 KB
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
{
"builders": [
{
"ami_description": "{{user `ami-description`}}",
"ami_name": "{{user `ami-name`}}",
"ami_regions": [
"us-east-1"
],
"ami_users": [
"XXXXXXXXXX"
],
"ena_support": "true",
"instance_type": "t2.medium",
"region": "us-east-1",
"source_ami_filter": {
"filters": {
"name": "amzn2-ami-hvm-2.0*x86_64*",
"root-device-type": "ebs",
"virtualization-type": "hvm"
},
"most_recent": true,
"owners": [
"amazon"
]
},
"sriov_support": "true",
"ssh_username": "ec2-user",
"tags": {
"Name": "{{user `ami-name`}}"
},
"type": "amazon-ebs"
}
],
"post-processors": [
{
"inline": [
"echo AMI Name {{user `ami-name`}}",
"date",
"exit 0"
],
"type": "shell-local"
}
],
"provisioners": [
{
"script": "install_amazon.bash",
"type": "shell"
}
],
"variables": {
"ami-description": "Amazon Linux for Jenkins Master and Slave ({{isotime \"2006-01-02-15-04-05\"}})",
"ami-name": "amazon-linux-for-jenkins-{{isotime \"2006-01-02-15-04-05\"}}",
"aws_access_key": "",
"aws_secret_key": ""
}
}