diff --git a/aws/resource_aws_dynamodb_table.go b/aws/resource_aws_dynamodb_table.go index 557bbebf48a..83e71b6b9a3 100644 --- a/aws/resource_aws_dynamodb_table.go +++ b/aws/resource_aws_dynamodb_table.go @@ -694,13 +694,12 @@ func deleteAwsDynamoDbTable(tableName string, conn *dynamodb.DynamoDB) error { } return nil }) + if isResourceTimeoutError(err) { _, err = conn.DeleteTable(input) } - if err != nil { - return fmt.Errorf("Error deleting DynamoDB table: %s", err) - } - return nil + + return err } func waitForDynamodbTableDeletion(conn *dynamodb.DynamoDB, tableName string, timeout time.Duration) error {