A colleague is attempting to launch several new CloudFormation stacks, and receives the following error response: What should be done to address the error?
A.
Add a Pause to the CloudFormation templates.
B.
Add an exponential backoff between CreateStack API calls.
C.
Run the CloudFormation API calls from a larger Amazon EC2 instance.
D.
Combine stack templates into one, and retry the CreateStack API call.
Comparing all, B is the right one.
There is a possibility to have nw congestion while creating stacks which may revoke the failed resources.
To avoid that, exponential backoff algorithm can be used.
It used progressively longer waits between retries for consecutive error responses.
You should implement a maximum delay interval, as well as a maximum number of retries.
Even those are not necessarily fixed values, and should be set based on the operation being performed,
as well as other local factors, such as network latency.
B
"If more than a couple deploy at the same time, you will see Rate Exceeded errors, which is possibly due to the checking of the stack status. If they now all retry after 5 seconds, all will get the same error again and they will ultimately fail. That's why adding an exponential backoff with a jitter helps to prevent this from happening.
I mean in general I think that adding a jitter and exponential backoff when retrying an api request is a good idea to prevent congestion."
https://github.com/serverless/serverless/issues/6980
Looks like exponential backoff is the right answer.
Included the following reference
aws docs reference : https://docs.aws.amazon.com/general/latest/gr/api-retries.html
However the above reference is not specific to CloudFormation case
Appreciate any one giving us a valid CloudFormation case reference helps
There is no specific case . AWS Provided recommendation exponential backoff option as general fix.
https://forums.aws.amazon.com/thread.jspa?threadID=100414
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
karmaah
Highly Voted 6 months, 2 weeks agoTroyMcLure
Most Recent 5 months, 4 weeks agogretch
6 months agoawscertified
6 months, 1 week agoaksliveswithaws
6 months, 3 weeks agokarmaah
6 months, 1 week agokarmaah
6 months, 3 weeks agokarmaah
7 months, 1 week ago