Tonny (sstNerd)
12/20/2021, 8:57 PMRoss Coundon
12/20/2021, 9:00 PMconst seedDynamoDbFunction = new sst.Function(this, 'dynamodbSeedFunction', {
handler: 'src/main/scripts/index.seedDynamoDb',
environment: commonEnvironment,
permissions: [omwPrimaryTable],
enableLiveDev: false,
});
new sst.Script(this, 'seedDynamoDbScript', {
onCreate: seedDynamoDbFunction,
});
You can do whatever you like in that function to set up your dataGabriel Araújo
12/20/2021, 9:08 PMGabriel Araújo
12/20/2021, 9:09 PMGabriel Araújo
12/20/2021, 9:11 PMGabriel Araújo
12/20/2021, 9:12 PMGabriel Araújo
12/20/2021, 9:17 PMconst playbook = new sst.Playbook(app, {
"Scenario Name": "lambda/path"
})
Tonny (sstNerd)
12/20/2021, 10:00 PMFrank
Function
that isn’t being used by the app. And you can run it on demand though the Console.
this would force a dynamo table to store “play data”Can you elaborate on this a bit more?
Gabriel Araújo
12/21/2021, 9:57 PMGabriel Araújo
12/21/2021, 9:58 PMGabriel Araújo
12/21/2021, 10:18 PMGabriel Araújo
12/21/2021, 10:18 PMGabriel Araújo
12/21/2021, 10:18 PMMayowa
12/21/2021, 10:37 PMGabriel Araújo
12/21/2021, 10:43 PMFrank