Accessing an elastic instance

Still need help?

The Atlassian Community is here for you.

Ask the community

It's possible to connect directly to a running elastic instance to access logs or upload files. Access is available through secure shell (SSH) and file transfer is enabled through secure copy (SCP).

You can only access already running elastic instances. To do that, you may need to configure the automatic termination of elastic instances.

On this page:

Using SSH

To access your elastic instance using SSH:

  1. Navigate to an elastic instance as described in Viewing an elastic instance.
  2. Run the command listed in the SSH Access section. For example:

    ssh -i elasticbamboo.pk <username>@ec2-68-111-185-197.compute-1.amazonaws.com

    Where <username> is a correct username. Common values are "ubuntu" (for the Stock Ubuntu Elastic Image and images derived from it) and "ec2-user" (for old Stock Elastic Images and images based on Amazon Linux).

    You can also download the private by using the link in the SSH Access section of Viewing an elastic instance to access your elastic instance via SSH. You can download the SSH private key file by clicking the link provided on-screen.

If you are experiencing permission issues when attempting to SSH into your elastic instance, you may need to log in as root or modify the permissions on your Elastic Bamboo private key file. See this FAQ for more details.


Using SCP

You can use SCP to download logs or upload files to your elastic instance.

To access your elastic instance using SCP:

  1. Navigate to the an elastic instance as described in Viewing an elastic instance.
  2. Run the command listed in the Accessing logs section. For example:

    scp -i elasticbamboo.pk <username>@ec2-68-111-185-197.compute-1.amazonaws.com:/home/bamboo/bamboo-elastic-agent.out ./

    Where <username> is a correct username. Common values are "ubuntu" (for the Stock Ubuntu Elastic Image and images derived from it) and "ec2-user" (for old Stock Elastic Images and images based on Amazon Linux).

Last modified on Apr 4, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.