Accessing an elastic instance
It is possible to connect directly to a running elastic instance to access logs or upload files. Access is available via SSH (secure shell) and file transfer is enabled via SCP (secure copy).
Please note, you can only access elastic instances that are running. You may need to configure the automatic termination of elastic instances.
On this page:
Related pages:
Using SSH
To access your elastic instance using SSH:
- Navigate to the desired elastic instance, as described on Viewing an elastic instance.
- Copy the command text listed under the 'SSH Access' section. It will be similar to the following example command text:
ssh -i /opt/bamboo/home/xml-data/configuration/elasticbamboo.pk root@ec2-68-111-185-197.compute-1.amazonaws.com
- Execute the text in your terminal and you will have full SSH access to the Elastic Instance.
You can also download the private key via the link in the 'SSH Access' section to access your elastic instance via SSH. Click 'here' in the following text on screen to download the key: 'You can also download the SSH private key file from here and use the private key to access the EC2 instance.'
Using SCP
Note, you can also use SCP to upload files to your elastic instance.
To access your elastic instance using SCP:
- Navigate to the desired elastic instance, as described on Viewing an elastic instance.
- Copy the command text listed under the 'Accessing Logs' section. It will be similar to the following example command text:
scp -i /opt/bamboo/home/xml-data/configuration/elasticbamboo.pk root@ec2-68-111-185-197.compute-1.amazonaws.com:/home/bamboo/bamboo-elastic-agent.out ./
- Execute the text in your terminal to download the logs from your elastic instance.
Notes
- Permission issues for SSH access — If you are experiencing permission issues when attempting to access your elastic instance via SSH, you may need to use the root user or modify permissions on your Elastic Bamboo private key file. See this FAQ for further details.