适用于 DynamoDB 的 CloudFormation:"Encountered unsupported property AttributeType"
CloudFormation for DynamoDB: "Encountered unsupported property AttributeType"
DynamoDB 堆栈回滚部署错误:
CREATE_FAILED Encountered unsupported property AttributeType
我尝试了对属性配置的各种修改,使用引号,还检查了 similar question。
我的模板:
Resources:
checkpointsTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: sf_instance_table_key
AttributeType: S
BillingMode: PAY_PER_REQUEST
KeySchema:
- AttributeName: sf_instance_table_key
AttributeType: HASH
TableName: !Ref tableName
Tags:
- Key: "Division"
Value: !Ref division
这里的行数不多,但是想不通。感谢您的帮助!
应该是这样的:
Resources:
checkpointsTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: sf_instance_table_key
AttributeType: S
BillingMode: PAY_PER_REQUEST
KeySchema:
- AttributeName: sf_instance_table_key
KeyType: HASH
TableName: !Ref tableName
Tags:
- Key: "Division"
Value: !Ref division
DynamoDB 堆栈回滚部署错误:
CREATE_FAILED Encountered unsupported property AttributeType
我尝试了对属性配置的各种修改,使用引号,还检查了 similar question。
我的模板:
Resources:
checkpointsTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: sf_instance_table_key
AttributeType: S
BillingMode: PAY_PER_REQUEST
KeySchema:
- AttributeName: sf_instance_table_key
AttributeType: HASH
TableName: !Ref tableName
Tags:
- Key: "Division"
Value: !Ref division
这里的行数不多,但是想不通。感谢您的帮助!
应该是这样的:
Resources:
checkpointsTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: sf_instance_table_key
AttributeType: S
BillingMode: PAY_PER_REQUEST
KeySchema:
- AttributeName: sf_instance_table_key
KeyType: HASH
TableName: !Ref tableName
Tags:
- Key: "Division"
Value: !Ref division