portkey-cloud / portkey

Live-coding the Cloud
144 stars 7 forks source link

Make first time use better by polling in case role is not yet ready #7

Closed viesti closed 7 years ago

viesti commented 7 years ago

When a role for the Lambda is newly created, it cannot be assumed by Lambda, so we call createFunction in a loop for 20 seconds until giving up.