LoginSignup
2
2

More than 5 years have passed since last update.

AWS EC2のReservationとは何か?

Last updated at Posted at 2016-09-10

aws ec2 describe-instancesとかするとjsonのトップレベルにReservationsが出てくる。これは何なのか?

{
    "Reservations": [
        {
            "OwnerId": "XXXXXXXXXXXX",
            "ReservationId": "r-XXXXXXXX",
            "Groups": [],
            "Instances": [
                {
                    "Monitoring": {
                        "State": "disabled"
:
:

reservationはインスタンスを起動するアクションのこと。run-instancesを使って一度に複数のインスタンスを起動すると、(普通は)1個のreservationが作られ、複数のインスタンスがそこに属する(ただし場合によっては複数のreservationが作られることもあるらしい)。
普通に一度に1個のインスタンスを起動する場合は1 reservation = 1 instance。
reservation単位でまとめて停止したりできる。

From my understanding, a reservation is an act of launching instances. Basically, a reservation is what you do, while an instance is what you get. If you launch multiple instances from one image via run_instances() you make one reservation, but get multiple instances.

run_instances together with Reservation.stop_all() allows you to run a bunch of instances, wait for them to complete the task and then stop them all at once.
http://stackoverflow.com/a/15619331/5209556

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2