faastjs > CostAnalyzer > awsConfigurations
CostAnalyzer.awsConfigurations variable
Default AWS cost analyzer configurations include all memory sizes for AWS Lambda.
Signature:
awsConfigurations: Configuration[]
Remarks
The default AWS cost analyzer configurations include every memory size from 128MB to 3008MB in 64MB increments. Each configuration has the following settings:
{
provider: "aws",
options: {
mode: "https",
memorySize,
timeout: 300,
gc: "off",
childProcess: true
}
}
Use Array.map
to change or Array.filter
to remove some of these configurations. For example:
const configsWithAtLeast1GB = awsConfigurations.filter(c => c.memorySize > 1024)
const shorterTimeout = awsConfigurations.map(c => ({...c, timeout: 60 }));