Page MenuHomePhabricator

automation: wait for instance profiles and roles

Authored by indygreg on Apr 19 2019, 10:41 AM.



Otherwise there is a race condition between creating the resources
and us attempting to use them / them becoming available.

The role waiter API was recently introduced, so we had to upgrade
the boto3 package to get it. Other packages were also updated
to latest versions just because.

Even with this change, I still run into issues with the IAM instance
profile not being available when we attempt to create an EC2 instance
using a just-created profile. I'm not sure what's going on. Possibly
a bug on Amazon's end. But the new behavior is "more correct."

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Apr 19 2019, 10:41 AM
indygreg updated this revision to Diff 14933.Apr 27 2019, 2:51 PM
This revision was automatically updated to reflect the committed changes.