automation: wait for instance profiles and roles
ClosedPublic

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

Details

Summary

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

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
indygreg created this revision.Apr 19 2019, 10:41 AM
indygreg updated this revision to Diff 14933.Sat, Apr 27, 2:51 PM
This revision was automatically updated to reflect the committed changes.