Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6944263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:17:05+00:00 2026-05-27T13:17:05+00:00

I would like to run an Amazon EC2 spot instance as CI server. In

  • 0

I would like to run an Amazon EC2 spot instance as CI server.
In order to keep the historical information I would like to keep all the data on separate EBS volume due to the fact the EBS volume of the spot instance will be deleted each time it will be terminated.

How can I mount the EBS volume during startup?

Thank you,
Ido.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:17:06+00:00Added an answer on May 27, 2026 at 1:17 pm

    you can have a init script that attaches the already available volume, using this command:

    ec2-attach-volume volume_id --instance instance_id --device device 
    

    for this to work, you need

    1. EC2-API installed on the machine

    2. you need to have EC2_PRIVATE_KEY and EC2_CERT as environment variable or will have to pass explicitly.

    3. The volume you’re trying to attach should be available. Or, optionally, you can first force detach the volume.

    4. you may use curl http://169.254.169.254/latest/meta-data/instance-id to get hold of current instance’s instance_id.

    Refer:

    • API Reference for attaching a EBS volume
    • Amazon-doc on instance data

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a small Amazon EC2 instance like this: ec2-run-instances --group default --block-device-mapping /dev/sda1=:16:off
I have a program that I run on amazon EC2 and I would like
I would like to run a WebSocket server off a worker role in Azure.
I would like to run a Dos program from a web server. The Dos
I want to run a CI Jenkins server on Amazon EC2 on Windows 2008.
I would like to run several receivers that will receive data in different ports,
I would like to run a simple query to get all users of a
I would like to run programmatically an instance of TestNG test. My test is
I would like to run a Django project on a server using virtualenv in
I would like to run multiple copies of my application and force the first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.