Use parameters sourced from DynamoDB in serverless.yml
This has only been tested with serverless 1.35.1
${ddb:<key>}
custom:
serverless-dynamodb-parameters:
tableName: theTableName # required
errorOnMissing: false # optional
functions:
hello:
handler: handler.hello
environment:
world: ${ddb:iamthekey} # resolves as iamthevalue
The name of the DynamoDB table where the parameters are read.
Default: true
An error will be thrown when a parameter is missing.
The only requirement is that the table is stored in the following structure
Partition Key: name Sort Key: version
name | version | value |
---|---|---|
thisisthekey | 00000000000000000002 | thisisthenewvalue |
thisisthekey | 00000000000000000001 | thisisthevalue |