# 调用 DescribeTable 操作时出错（ResourceInUseException）：表处于归档状态，无法描述

- **ID:** `aws/dynamodb-table-in-archiving-state`
- **领域:** aws
- **类别:** resource_error
- **错误码:** `ResourceInUseException`
- **验证级别:** ai_generated
- **修复率:** 85%

## 根因

DynamoDB 表正在被归档（例如，通过备份或删除过程），像 DescribeTable 这样的操作被阻止，直到归档完成。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| dynamodb-2012-08-10 | active | — | — |
| aws-cli/2.17.0 | active | — | — |

## 解决方案

1. ```
   等待归档过程完成。使用 `aws dynamodb wait table-exists --table-name mytable` 监控表状态，或检查 CloudWatch 事件以了解备份完成情况。
   ```
2. ```
   如果归档时间过长，请联系 AWS Support 以加速或取消操作，因为可能由于表过大或节流而卡住。
   ```
3. ```
   在归档开始前使用 DynamoDB Streams 捕获更改；归档完成后，重新创建表并重放更改。
   ```

## 无效尝试

- **Force delete the table using `aws dynamodb delete-table`** — If the table is in ARCHIVING state, it is already being deleted or backed up; delete-table will fail with the same error. (85% 失败率)
- **Restore the table from a backup while it is archiving** — Restore operations require the table to be in ACTIVE state; archiving blocks both reads and writes. (90% 失败率)
