-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaws_ec2_plugin.template
43 lines (43 loc) · 1.58 KB
/
aws_ec2_plugin.template
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
# Config for AWS EC2 plugin
# AWS Clouds are configured by region. Add a new '- amazonEC2' entry under clouds to add new regions.
# Replace <value> with the required parameters
# Add a new '- ami' entry under templates to add new build node configs.
jenkins:
clouds:
- amazonEC2:
# Example: cloud setup in ${AWS_REGION}
cloudName: "<name>"
instanceCapStr: "100" # A cap can also be set for each AMI config.
region: "${AWS_REGION}"
sshKeysCredentialsId: "<credential-id>" # Use the ssh credential ID created in credentials.yaml
templates:
# Example: Linux build node using SSH in ${AWS_REGION}${AWS_AZ}
- ami: "${LINUX_AMI_ID}"
amiType:
unixData:
sshPort: "22"
connectionStrategy: PRIVATE_IP
description: "<description>"
ebsEncryptRootVolume: ENCRYPTED
ebsOptimized: true
hostKeyVerificationStrategy: ACCEPT_NEW
iamInstanceProfile: "<instance-profile-arn>"
idleTerminationMinutes: "30"
labelString: "linux"
launchTimeoutStr: "300"
maxTotalUses: 1
minimumNumberOfInstances: 0
minimumNumberOfSpareInstances: 0
numExecutors: 1
remoteAdmin: "<username>"
remoteFS: "<remote-home-directory>"
securityGroups: "${SECURITY_GROUP_ID}"
stopOnTerminate: false
subnetId: "<subnet-id>"
tags:
- name: "Name"
value: "<name-tag>"
tenancy: Default
type: <instance-type> # e.g. C54xlarge
useEphemeralDevices: false
zone: "${AWS_REGION}${AWS_AZ}"