Почему при создании стека в AWS Cloud Formation выдается ошибка: "Предоставленная пропускная способность не может быть оставлена пустой"?
Создание стека в AWS Cloud Formation выдает эту ошибку:
Provisioned Throughput cannot be left blank
Даже если мой JSON содержит это поле?
{"AWSTemplateFormatVersion": "2010-09-09",
"Description": "CloudFormation template for My_Table”,
"Resources": {
"myDynamoDBTable": {
"Type": "AWS::DynamoDB::Table",
"Properties": {
"AttributeDefinitions": [
{
"AttributeName": “abc”,
"AttributeType": "N"
},
{
"AttributeName": “xyz”,
"AttributeType": "S"
},
{
"AttributeName": “fgh”,
"AttributeType": "S"
}
],
"KeySchema": [
{
"AttributeName": “abc”,
"KeyType": "HASH"
},
{
"AttributeName": “fgh”,
"KeyType": "RANGE"
}
],
"ProvisionedThroughput": {
"ReadCapacityUnits": "5",
"WriteCapacityUnits": "5"
},
"TableName": “My_Table",
"GlobalSecondaryIndexes": [
{
"IndexName": “xyz-index",
"KeySchema": [
{
"AttributeName": “xyz”,
"KeyType": "HASH"
}
],
"Projection": {
"ProjectionType": "ALL"
}
}
]
}
}
}
}
2 ответа
В шаблоне отсутствует параметр Provisioned Throughput для GlobalSecondaryIndexes
раздел:
"GlobalSecondaryIndexes": [
{
"IndexName": "xyz-index",
"KeySchema": [
{
"AttributeName": "xyz",
"KeyType": "HASH"
}
],
"Projection": {
"ProjectionType": "ALL"
},
"ProvisionedThroughput" : { <== This bit here
"ReadCapacityUnits" : "5",
"WriteCapacityUnits" : "5"
}
...
Шаблон выглядит хорошо, но перед тем, как My_tabls"
должно быть ", а не"
"TableName": “My_Table",
похожий странный персонаж “
в части GlobalSecondaryIndexes
также.