Successfully installed it by myself. Thanks to internet and guys from Atlassian.
So below are the steps I did.
To install an elastic agent on Windows AMI
- Launch and RDP into any desirable Amazon Windows Image instance
- Change Admin password at once
- Install Google Chrome (for convenience)
- Install Far Manager (for convenience)
- Install the latest JDK
- Update PATH to point to Java bin directory. If everything is ok, then java -version command should give you the version of Java
- Download appropriate version of the agent from Atlassian
- An elastic agent for Bamboo 3.0.4 can be found here
- Extract the content of the zip into c:\bamboo-elastic-agent
- Update PATH to point to c:\bamboo-elastic-agent\bin
- Create folder c:\bamboo-agent-home
- Create a file launch-bamboo.bat in c:\bamboo-elastic-agent\bin\ with the following contents
@echo off
setlocal enabledelayedexpansion
set BIN_PATH=%~dp0
set OLD_PWD=%CD%
cd %BIN_PATH%
for %%J in ("..\lib\*.jar") do (
if defined CLASSPATH (
set CLASSPATH=!CLASSPATH!;%%J) else set CLASSPATH=%%J)
@echo on
java -server -Xms32m -Xmx512m -XX:MaxPermSize=256m -classpath %CLASSPATH% -Dbamboo.home=C:\bamboo-agent-home com.atlassian.bamboo.agent.elastic.client.ElasticAgentBootstrap 2>&1 > C:\bamboo-agent-home\bamboo-elastic-agent.log
@echo off
cd %OLD_PWD%
set OLD_PWD=