-
Notifications
You must be signed in to change notification settings - Fork 0
/
awsmachine.json
41 lines (41 loc) · 1.08 KB
/
awsmachine.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
{
"variables":{
"aws_profile":"{{ env `AWS_PROFILE` }}"
},
"builders":[
{
"type":"amazon-ebs",
"profile":"{{ user `aws_profile` }}",
"region":"eu-central-1",
"source_ami":"ami-0eaec5838478eb0ba",
"instance_type":"t2.micro",
"ssh_username":"ec2-user",
"ami_name":"Jenkins-AMI-{{timestamp}}",
"tags": {
"Name":"Jenkins-AMI-{{timestamp}}"
}
}
],
"provisioners":[
{
"type":"shell",
"script":"install-tools.sh"
},
{
"type":"file",
"source":"basic-security.groovy",
"destination":"/tmp/basic-security.groovy"
},
{
"type":"shell",
"inline":[
"sudo mkdir -p /var/lib/jenkins/init.groovy.d",
"sudo cp /tmp/basic-security.groovy /var/lib/jenkins/init.groovy.d/basic-security.groovy"
]
},
{
"type":"shell",
"script":"install-jenkins-plugins.sh"
}
]
}