amplify-education / serverless-vpc-discovery

Serverless plugin for discovering VPC / Subnet / Security Group configuration by name.
MIT License
38 stars 15 forks source link

Add More Retries #14

Closed jconstance-amplify closed 5 years ago

jconstance-amplify commented 5 years ago

Sometimes, the AWS commands this plugin uses timeout. When that happens, the plugin currently fails out and the user must run the deploy again. That is bad for automated environments where we want to run deploys seamlessly. So let's add our own maxRetries to the AWS config object we get from serverless and make sure that we retry throttled commands automatically.

The default is 3 retries, and this change raises that to 20 retries, which should be sufficient.