-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust aws_dynamodb_table CreateTable LimitExceededException handling for different error messaging #2274
Adjust aws_dynamodb_table CreateTable LimitExceededException handling for different error messaging #2274
Conversation
… for different error messaging
aws/resource_aws_dynamodb_table.go
Outdated
// Subscriber limit exceeded: There is a limit of 256 tables per subscriber | ||
// Do not error out on this similar throttling message: | ||
// Subscriber limit exceeded: Only 10 tables can be created, updated, or deleted simultaneously | ||
if strings.Contains(awsErr.Message(), "Subscriber limit exceeded:") && !strings.Contains(awsErr.Message(), "simultaneously") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind tightening this a little bit, just to make sure we don't match an error we don't want to match? e.g. can be created, updated, or deleted simultaneously
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a problem at all - will update shortly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a problem at all - will update shortly
…ption retry message handling
Updated message matching pushed. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
The AWS API is returning multiple, similar messages for DynamoDB throttling vs hitting the account limit. This "regression" was introduced in 130cdfe.
Closes #1776
Closes #2146