amazon-dynamodb - DeletePolicy 保留导致问题
问题描述
我正在尝试使用以下代码将现有 ddb 表导入到我的 cf yaml 中:
UserPreferencesDDBTable:
Type: AWS::DynamoDB::Table
DeletionPolicy: Retain
Properties:
AttributeDefinitions:
- AttributeName: id
AttributeType: S
- AttributeName: subid
AttributeType: S
KeySchema:
- AttributeName: id
KeyType: HASH
- AttributeName: subid
KeyType: RANGE
SSESpecification:
SSEEnabled: true
TableName: 'test-user-preferences'
在云形成堆栈事件中,我看到它正在尝试创建它并失败,因为存在具有此名称的资源。我在这里做错了什么?
解决方案
推荐阅读
- angular - TSLint:现有规则的自定义错误消息
- amazon-ec2 - 在 ec2 上安装 google-cloud-sdk 的公钥问题
- sql - SQL 只返回重复记录
- java - Jboss 使用 Keycloak 记录到 slf4j/log4j2
- types - Apex 中是否存在隐式输入?
- docker - 按名称过滤 docker 容器并停止它们
- node.js - Firebase 可调用函数权限
- android - RecyclerView StateRestorationPolicy 结合 AppBarLayout
- r - 带有长表的长脚注
- python - 根据列表中出现的字符串对数据框行进行分类