Configure the plugin in getdotenv.config.json under plugins["aws/dynamodb"] (recommended). String values support $VAR and ${VAR:default} expansion from the composed dotenv context.
Example
{
"plugins": {
"aws/dynamodb": {
"tablesPath": "./tables",
"tokens": {
"table": "table",
"entityManager": "entityManager",
"transform": "transform"
},
"generate": {
"version": "001",
"tableProperties": {
"tableName": "$DDB_TABLE",
"billingMode": "PAY_PER_REQUEST"
}
},
"create": { "version": "001", "waiter": { "maxSeconds": 60 } },
"delete": { "tableName": "$DDB_TABLE" },
"purge": { "tableName": "$DDB_TABLE" },
"migrate": {
"sourceTable": "$SRC",
"targetTable": "$TGT",
"fromVersion": "001",
"toVersion": "002",
"pageSize": 100,
"transformConcurrency": 2
}
}
}
}
Managed table properties invariants
readCapacityUnits/writeCapacityUnits, you must also set billingMode: "PROVISIONED", and you must provide both RCU and WCU together.Precedence
plugins["aws/dynamodb"] config (dotenv-expanded)Related