Choose the type of AMI this agent uses:
- Unix: connected to with ssh.
- Windows: connected to with CIFS and WinRM/WinRS.
Notes for Windows AMI:
EC2 Windows agents are accessed with CIFS (to send the initial Jenkins agent.jar) and WinRM to launch and connect
to the agent afterward.
This windows AMI must be configured with:
- a security group allowing SMB over TCP (incoming TCP port 445) and WinRM (incoming TCP port 5985)
- windows firewall should allow incoming SMB over TCP
- java should be installed and available in the %PATH%
- WinRM should be enabled with the following commands (for more information see: Microsoft article 555966):
- winrm quickconfig
- winrm set winrm/config/service/Auth '@{Basic="true"}'
- winrm set winrm/config/service '@{AllowUnencrypted="true"}'
- winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="10240"}'
- For https:
Finally make sure to set the username to Administrator and enter the administrator password.