We use the task using the built in Cloudformation Template task to roll out deployments to our tenants on AWS via workers - As these tasks involve Cloudfront udates can take a bit of time (several minutes if it’s a full update) but we want to know the outcome so have the “Wait for Completion” flag set - which I believe has a wait loop that will poll the Cloudformation API for changes to the stack - this polling appears to be quite frequent.
My issue is that we run concurrent builds via Web workers we are hitting cloudformation rate limit errors due to multiple threads polling. Error:
“Amazon.CloudFormation.AmazonCloudFormationException: Rate exceeded” - Concurrent deployments all polling at the same time I suspect is the cause.
Is there a way we could pass in a flag to adjust the frequency this polling occurs? (or back off if the error occurs)
Currently this causes the task to go to fail although the Cloudformation task carries on OK on AWS.