chef-boneyard/chef-provisioning-aws

AWS::EC2::Errors::InvalidInstanceID::NotFound When creating a `machine`

Closed this issue · 3 comments

This is a very aleatory issue, when creating a new instance on AWS using the machine resource sometimes it fails with the error:

Problem: AWS::EC2::Errors::InvalidInstanceID::NotFound

The instance ID 'i-afb562a2' does not exist

When it indeed created the instance.

This keeps rearing its head - I think I may have fixed it in #263

The issue is that immediately after creating an instance we check and retry until it is ready for tagging. Previsouly I was only retrying if the status was bad, but if you call aws_object.status before it is actually created you see the error above.

@afiune Can you try with the branch from that PR I linked and see if you see any issues?

@tyler-ball yup, I will give it a try today! 😄

Hey @afiune - I'm going to close this. Will you re-open if you see these start popping up again?