Closed iaforek closed 5 years ago
@iaforek - are you using createSatck: false
in your config?
Also, can you share your serverless.yml
file please
Yes, I initially used createSatck: false
and received validation error.
I also later changed it to true
and then I've got:
CreateGlobalTable: Failed to setup global table. Error Requires capabilities : [CAPABILITY_NAMED_IAM]
In serverless.yml
my DynamoDB is actually configured in resources
like this:
...
resources: ${file(config.json):resources}
and here is the config.json
part:
{
...
"resources": {
"Resources": {
"MyDynamoTable": {
"Type": "AWS::DynamoDB::Table",
"Properties": {
"AttributeDefinitions": [
{
"AttributeName": "id",
"AttributeType": "S"
}
],
"KeySchema": [
{
"AttributeName": "id",
"KeyType": "HASH"
}
],
"BillingMode": "PAY_PER_REQUEST",
"SSESpecification": {
"SSEEnabled": true
},
"TableName": "${opt:stage, self:provider.stage}-my-table",
"TimeToLiveSpecification": {
"AttributeName": "_ttl",
"Enabled": true
}
}
},
...
}
@iaforek - i have added support for billing mode in v2.1.0 when using createStack: true
I've got following error:
Because I don't use provisioned throughput. Instead, I use:
Can you add support for on-demand capacity mode?