Skip to content

Commit

Permalink
Improved two EC2 waiters.
Browse files Browse the repository at this point in the history
The `:instance_running` and `:instance_state_ok` waiters were
raising an unexpeced error, i.e. `Aws::EC2::Errors::InvalidInstanceIDNotFound`
instead of retrying. This could happen only newly launched instances.

See #859.
  • Loading branch information
trevorrowe committed Aug 4, 2015
1 parent a55658f commit f4966ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Unreleased Changes
------------------

* Issue - Aws::EC2 - Updated two `Aws::EC2::Client#wait_until` waiters to
retry instance ID not found errors. The two waiters are:

* `:instance_running`
* `:instance_status_ok`

See [related GitHub issue #859](https://github.com/aws/aws-sdk-ruby/issues/859).

2.1.11 (2015-07-30)
------------------

Expand Down
10 changes: 10 additions & 0 deletions aws-sdk-core/apis/ec2/2015-04-15/waiters-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@
"matcher": "pathAny",
"state": "failure",
"argument": "Reservations[].Instances[].State.Name"
},
{
"matcher": "error",
"expected": "InvalidInstanceIDNotFound",
"state": "retry"
}
]
},
Expand All @@ -199,6 +204,11 @@
"matcher": "pathAll",
"argument": "InstanceStatuses[].InstanceStatus.Status",
"expected": "ok"
},
{
"matcher": "error",
"expected": "InvalidInstanceIDNotFound",
"state": "retry"
}
]
},
Expand Down

0 comments on commit f4966ad

Please sign in to comment.